use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DemoBinaryImageOpsApp method main.
public static void main(String[] args) {
DemoBinaryImageOpsApp app = new DemoBinaryImageOpsApp(GrayF32.class);
java.util.List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("particles", UtilIO.pathExample("particles01.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, "Binary Image Ops", true);
System.out.println("Done");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class ShowFeatureOrientationApp method main.
public static void main(String[] args) {
ShowFeatureOrientationApp<GrayF32, GrayF32> app = new ShowFeatureOrientationApp<>(GrayF32.class, GrayF32.class);
// ShowFeatureOrientationApp<GrayU8, GrayS16> app =
// new ShowFeatureOrientationApp<GrayU8,GrayS16>(input,GrayU8.class, GrayS16.class);
java.util.List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("shapes", UtilIO.pathExample("shapes/shapes01.png")));
inputs.add(new PathLabel("sunflowers", UtilIO.pathExample("sunflowers.jpg")));
inputs.add(new PathLabel("beach", UtilIO.pathExample("scale/beach02.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();
}
System.out.println("Calling show window");
ShowImages.showWindow(app, "Feature Orientation", true);
System.out.println("Done");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DenoiseVisualizeApp method main.
public static void main(String[] args) {
DenoiseVisualizeApp app = new DenoiseVisualizeApp(GrayF32.class);
List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("lena", UtilIO.pathExample("standard/lena512.jpg")));
inputs.add(new PathLabel("barbara", UtilIO.pathExample("standard/barbara.jpg")));
inputs.add(new PathLabel("boat", UtilIO.pathExample("standard/boat.jpg")));
inputs.add(new PathLabel("fingerprint", UtilIO.pathExample("standard/fingerprint.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 Noise Removal", true);
System.out.println("Done");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class VisualizeAssociationScoreApp method main.
public static void main(String[] args) {
Class imageType = GrayF32.class;
Class derivType = GrayF32.class;
VisualizeAssociationScoreApp app = new VisualizeAssociationScoreApp(imageType, derivType);
List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("Cave", UtilIO.pathExample("stitch/cave_01.jpg"), UtilIO.pathExample("stitch/cave_02.jpg")));
inputs.add(new PathLabel("Kayak", UtilIO.pathExample("stitch/kayak_02.jpg"), UtilIO.pathExample("stitch/kayak_03.jpg")));
inputs.add(new PathLabel("Forest", UtilIO.pathExample("scale/rainforest_01.jpg"), UtilIO.pathExample("scale/rainforest_02.jpg")));
inputs.add(new PathLabel("Building", UtilIO.pathExample("stitch/apartment_building_01.jpg"), UtilIO.pathExample("stitch/apartment_building_02.jpg")));
inputs.add(new PathLabel("Trees Rotate", UtilIO.pathExample("stitch/trees_rotate_01.jpg"), UtilIO.pathExample("stitch/trees_rotate_03.jpg")));
app.setPreferredSize(new Dimension(1000, 500));
app.setSize(1000, 500);
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, "Association Relative Score", true);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DemoDetectPointFeaturesApp method main.
public static void main(String[] args) {
List<PathLabel> examples = new ArrayList<>();
examples.add(new PathLabel("Chessboard", UtilIO.pathExample("calibration/mono/Sony_DSC-HX5V_Chess/frame06.jpg")));
examples.add(new PathLabel("Square Grid", UtilIO.pathExample("calibration/mono/Sony_DSC-HX5V_Square/frame06.jpg")));
examples.add(new PathLabel("Shapes 01", "shapes/shapes01.png"));
examples.add(new PathLabel("Amoeba Shapes", "amoeba_shapes.jpg"));
examples.add(new PathLabel("Sunflowers", "sunflowers.jpg"));
examples.add(new PathLabel("Beach", "scale/beach02.jpg"));
examples.add(new PathLabel("Chessboard Movie", UtilIO.pathExample("fiducial/chessboard/movie.mjpeg")));
DemoDetectPointFeaturesApp app = new DemoDetectPointFeaturesApp(examples, GrayF32.class);
app.openExample(examples.get(0));
app.waitUntilInputSizeIsKnown();
app.display("Point Feature Detectors");
}
Aggregations