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);
}
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);
}
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);
}
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);
}
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");
}
Aggregations