use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class EquirectangularPinholeApp method main.
public static void main(String[] args) {
ImageType type = ImageType.pl(3, GrayU8.class);
List<PathLabel> examples = new ArrayList<>();
examples.add(new PathLabel("Half Dome 01", UtilIO.pathExample("spherical/equirectangular_half_dome_01.jpg")));
examples.add(new PathLabel("Half Dome 02", UtilIO.pathExample("spherical/equirectangular_half_dome_02.jpg")));
examples.add(new PathLabel("Glow Sticks", UtilIO.pathExample("spherical/equirectangular_glowsticks.jpg")));
EquirectangularPinholeApp app = new EquirectangularPinholeApp(examples, type);
app.openFile(new File(examples.get(0).getPath()));
app.display("Equirectanglar to Pinhole Camera");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class EquirectangularRotatingApp method main.
public static void main(String[] args) {
ImageType type = ImageType.pl(3, GrayU8.class);
List<PathLabel> examples = new ArrayList<>();
examples.add(new PathLabel("Half Dome 01", UtilIO.pathExample("spherical/equirectangular_half_dome_01.jpg")));
examples.add(new PathLabel("Half Dome 02", UtilIO.pathExample("spherical/equirectangular_half_dome_02.jpg")));
examples.add(new PathLabel("Glow Sticks", UtilIO.pathExample("spherical/equirectangular_glowsticks.jpg")));
EquirectangularRotatingApp app = new EquirectangularRotatingApp(examples, type);
app.openFile(new File(examples.get(0).getPath()));
app.display("Equirectanglar Rotator");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class VideoTrackerPointFeaturesApp method main.
public static void main(String[] args) {
Class imageType = GrayF32.class;
Class derivType = GrayF32.class;
// Class defaultType = GrayU8.class;
// Class derivType = GrayS16.class;
VideoTrackerPointFeaturesApp app = new VideoTrackerPointFeaturesApp(imageType, derivType);
java.util.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, "Feature Tracker", true);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class VisualizeScaleSpacePyramidApp method main.
public static void main(String[] args) {
// VisualizePyramidFloatApp<GrayF32> app = new VisualizePyramidFloatApp<>(GrayF32.class);
VisualizeScaleSpacePyramidApp<GrayU8> app = new VisualizeScaleSpacePyramidApp<>(GrayU8.class);
java.util.List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("boat", UtilIO.pathExample("standard/boat.jpg")));
inputs.add(new PathLabel("shapes", UtilIO.pathExample("shapes/shapes01.png")));
inputs.add(new PathLabel("sunflowers", UtilIO.pathExample("sunflowers.jpg")));
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 Float Pyramid", true);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class VideoMosaicSequentialPointApp method main.
public static void main(String[] args) {
Class type = GrayF32.class;
Class derivType = type;
// Class type = GrayU8.class;
// Class derivType = GrayS16.class;
VideoMosaicSequentialPointApp app = new VideoMosaicSequentialPointApp(type, derivType);
List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("Plane 1", UtilIO.pathExample("mosaic/airplane01.mjpeg")));
inputs.add(new PathLabel("Plane 2", UtilIO.pathExample("mosaic/airplane02.mjpeg")));
inputs.add(new PathLabel("Shake", UtilIO.pathExample("shake.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 Mosaic", true);
}
Aggregations