use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class VisualizeAssociationMatchesApp method main.
public static void main(String[] args) {
Class imageType = GrayF32.class;
Class derivType = GImageDerivativeOps.getDerivativeType(imageType);
VisualizeAssociationMatchesApp app = new VisualizeAssociationMatchesApp(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, "Associated Features", true);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class ShowRectifyCalibratedApp method main.
public static void main(String[] args) {
ShowRectifyCalibratedApp app = new ShowRectifyCalibratedApp();
// camera config, image left, image right
String dir = UtilIO.pathExample("calibration/stereo/Bumblebee2_Chess/");
java.util.List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("BumbleBee", dir + "stereo.yaml", dir + "left05.jpg", dir + "right05.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, "Calibrated Camera Rectification", true);
System.out.println("Done");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DetectPointsInsidePyramidApp method main.
public static void main(String[] args) {
DetectPointsInsidePyramidApp app = new DetectPointsInsidePyramidApp(GrayF32.class, GrayF32.class);
java.util.List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("shapes", UtilIO.pathExample("shapes/shapes01.png")));
inputs.add(new PathLabel("amoeba", UtilIO.pathExample("amoeba_shapes.jpg")));
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();
}
ShowImages.showWindow(app, "Pyramid Point Detection", true);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DetectLineApp method main.
public static void main(String[] args) {
Class imageType = GrayF32.class;
Class derivType = GrayF32.class;
DetectLineApp app = new DetectLineApp(imageType, derivType);
java.util.List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("Objects", UtilIO.pathExample("simple_objects.jpg")));
inputs.add(new PathLabel("Indoors", UtilIO.pathExample("lines_indoors.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, "Line Detection", true);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DeformImageKeyPointsApp method main.
public static void main(String[] args) {
ImageType type = ImageType.pl(3, GrayU8.class);
List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("Man MLS", UtilIO.pathExample("standard/man_mls.jpg")));
inputs.add(new PathLabel("Mona Lisa", UtilIO.pathExample("standard/mona_lisa.jpg")));
inputs.add(new PathLabel("Drawing Face", UtilIO.pathExample("drawings/drawing_face.png")));
DeformImageKeyPointsApp app = new DeformImageKeyPointsApp(inputs, type);
app.openFile(new File(inputs.get(0).getPath()));
app.waitUntilInputSizeIsKnown();
ShowImages.showWindow(app, "Deform Image Key Points", true);
}
Aggregations