Search in sources :

Example 46 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class VisualizeMonocularPlaneVisualOdometryApp method main.

public static void main(String[] args) throws FileNotFoundException {
    Class type = GrayF32.class;
    // Class type = GrayU8.class;
    VisualizeMonocularPlaneVisualOdometryApp app = new VisualizeMonocularPlaneVisualOdometryApp(type);
    List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Simulation", UtilIO.pathExample("vo/drc/config_plane.txt")));
    app.setInputList(inputs);
    // wait for it to process one image so that the size isn't all screwed up
    while (!app.getHasProcessedImage()) {
        Thread.yield();
    }
    ShowImages.showWindow(app, "Monocular Plane Visual Odometry", true);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 47 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class VisualizeStereoVisualOdometryApp method main.

public static void main(String[] args) throws FileNotFoundException {
    Class type = GrayF32.class;
    // Class type = GrayU8.class;
    VisualizeStereoVisualOdometryApp app = new VisualizeStereoVisualOdometryApp(type);
    // app.setMediaManager(new XugglerMediaManager());
    List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Inside", UtilIO.pathExample("vo/library/config.txt")));
    inputs.add(new PathLabel("Outside", UtilIO.pathExample("vo/backyard/config.txt")));
    inputs.add(new PathLabel("Urban", UtilIO.pathExample("vo/rockville/config.txt")));
    app.setInputList(inputs);
    // wait for it to process one image so that the size isn't all screwed up
    while (!app.getHasProcessedImage()) {
        Thread.yield();
    }
    ShowImages.showWindow(app, "Stereo Visual Odometry", true);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 48 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class VisualizeImageSegmentationApp method main.

public static void main(String[] args) {
    ImageType<Planar<GrayF32>> imageType = ImageType.pl(3, GrayF32.class);
    // ImageType<Planar<GrayU8>> defaultType = ImageType.pl(3,GrayU8.class);
    // ImageType<GrayF32> defaultType = ImageType.single(GrayF32.class);
    // ImageType<GrayU8> defaultType = ImageType.single(GrayU8.class);
    VisualizeImageSegmentationApp app = new VisualizeImageSegmentationApp(imageType);
    // app.setBaseDirectory(UtilIO.pathExample("segment/");
    // app.loadInputData(UtilIO.pathExample("segment/segment.txt");
    java.util.List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Horses", UtilIO.pathExample("segment/berkeley_horses.jpg")));
    inputs.add(new PathLabel("Kangaroo", UtilIO.pathExample("segment/berkeley_kangaroo.jpg")));
    inputs.add(new PathLabel("Man", UtilIO.pathExample("segment/berkeley_man.jpg")));
    inputs.add(new PathLabel("Pines People", UtilIO.pathExample("segment/mountain_pines_people.jpg")));
    inputs.add(new PathLabel("Sunflowers", UtilIO.pathExample("sunflowers.jpg")));
    inputs.add(new PathLabel("Shapes", UtilIO.pathExample("shapes/shapes01.png")));
    app.setInputList(inputs);
    // wait for it to process one image so that the size isn't all screwed up
    while (!app.getHasProcessedImage()) {
        Thread.yield();
    }
    ShowImages.showWindow(app, "Image Segmentation", true);
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 49 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class VideoStabilizeSequentialPointApp method main.

public static void main(String[] args) {
    VideoStabilizeSequentialPointApp app = new VideoStabilizeSequentialPointApp(GrayF32.class, GrayF32.class);
    List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Shake", UtilIO.pathExample("shake.mjpeg")));
    inputs.add(new PathLabel("Zoom", UtilIO.pathExample("zoom.mjpeg")));
    inputs.add(new PathLabel("Rotate", UtilIO.pathExample("rotate.mjpeg")));
    app.setInputList(inputs);
    // wait for it to process one image so that the size isn't all screwed up
    while (!app.getHasProcessedImage()) {
        Thread.yield();
    }
    ShowImages.showWindow(app, "Video Image Stabilize", true);
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 50 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class VideoTrackerObjectQuadApp method main.

/**
 * 0 = running
 * 1 = paused
 * 2 = finished
 */
// @Override
// protected void handleRunningStatus(int status) {
// if( status == 0 ) {
// infoBar.setPlay(false);
// } else if( status == 1 ) {
// infoBar.setPlay(true);
// }
// }
public static void main(String[] args) {
    // Class type = GrayF32.class;
    Class type = GrayU8.class;
    // app.setBaseDirectory(UtilIO.pathExample("");
    // app.loadInputData(UtilIO.pathExample("tracking/file_list.txt");
    List<PathLabel> examples = new ArrayList<>();
    examples.add(new PathLabel("WildCat", UtilIO.pathExample("tracking/wildcat_robot.mjpeg")));
    examples.add(new PathLabel("Tree", UtilIO.pathExample("tracking/tree.mjpeg")));
    examples.add(new PathLabel("Book", UtilIO.pathExample("tracking/track_book.mjpeg")));
    examples.add(new PathLabel("Face", UtilIO.pathExample("tracking/track_peter.mjpeg")));
    examples.add(new PathLabel("Chipmunk", UtilIO.pathExample("tracking/chipmunk.mjpeg")));
    examples.add(new PathLabel("Balls", UtilIO.pathExample("tracking/balls_blue_red.mjpeg")));
    examples.add(new PathLabel("Driving Snow", UtilIO.pathExample("tracking/snow_follow_car.mjpeg")));
    examples.add(new PathLabel("Driving Night", UtilIO.pathExample("tracking/night_follow_car.mjpeg")));
    VideoTrackerObjectQuadApp app = new VideoTrackerObjectQuadApp(examples, type);
    app.openFile(new File(examples.get(0).getPath()));
    app.display("Tracking Rectangle");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Aggregations

PathLabel (boofcv.io.PathLabel)51 ArrayList (java.util.ArrayList)48 GrayF32 (boofcv.struct.image.GrayF32)14 File (java.io.File)10 ImageType (boofcv.struct.image.ImageType)7 GrayU8 (boofcv.struct.image.GrayU8)4 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)3 BufferedImage (java.awt.image.BufferedImage)3 BufferedReader (java.io.BufferedReader)2 IOException (java.io.IOException)2 SquareImage_to_FiducialDetector (boofcv.abst.fiducial.SquareImage_to_FiducialDetector)1 LensDistortionRadialTangential (boofcv.alg.distort.radtan.LensDistortionRadialTangential)1 ConfigFiducialBinary (boofcv.factory.fiducial.ConfigFiducialBinary)1 ConfigFiducialImage (boofcv.factory.fiducial.ConfigFiducialImage)1 ConfigThreshold (boofcv.factory.filter.binary.ConfigThreshold)1 StereoParameters (boofcv.struct.calib.StereoParameters)1 ActionListener (java.awt.event.ActionListener)1 FileReader (java.io.FileReader)1 Reader (java.io.Reader)1 List (java.util.List)1