use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class ShowRectifyCalibratedApp method changeInput.
@Override
public void changeInput(String name, int index) {
PathLabel refs = inputRefs.get(index);
StereoParameters param = CalibrationIO.load(media.openFile(refs.getPath(0)));
BufferedImage origLeft = media.openImage(refs.getPath(1));
BufferedImage origRight = media.openImage(refs.getPath(2));
configure(origLeft, origRight, param);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DemoBinaryBlobLabelOpsApp method main.
public static void main(String[] args) {
DemoBinaryBlobLabelOpsApp app = new DemoBinaryBlobLabelOpsApp(GrayF32.class);
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, "Label Binary Blobs", true);
System.out.println("Done");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class DemoImageThresholdingApp method main.
public static void main(String[] args) {
java.util.List<PathLabel> examples = new ArrayList<>();
examples.add(new PathLabel("particles", UtilIO.pathExample("particles01.jpg")));
examples.add(new PathLabel("shapes", UtilIO.pathExample("shapes/shapes01.png")));
examples.add(new PathLabel("stained", UtilIO.pathExample("segment/stained_handwriting.jpg")));
examples.add(new PathLabel("Chessboard Movie", UtilIO.pathExample("fiducial/chessboard/movie.mjpeg")));
DemoImageThresholdingApp app = new DemoImageThresholdingApp(examples, GrayF32.class);
app.openExample(examples.get(0));
app.display("Thresholding Demo");
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class FourierVisualizeApp method main.
public static void main(String[] args) {
FourierVisualizeApp app = new FourierVisualizeApp(ImageDataType.F32);
// FourierVisualizeApp app = new FourierVisualizeApp(ImageTypeInfo.F64);
java.util.List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("lena", UtilIO.pathExample("standard/lena512.jpg")));
inputs.add(new PathLabel("boat", UtilIO.pathExample("standard/boat.jpg")));
inputs.add(new PathLabel("fingerprint", UtilIO.pathExample("standard/fingerprint.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, "Discrete Fourier Transform", true);
}
use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.
the class VisualizePyramidDiscreteApp method main.
public static void main(String[] args) {
VisualizePyramidDiscreteApp<GrayF32> app = new VisualizePyramidDiscreteApp<>(GrayF32.class);
List<PathLabel> inputs = new ArrayList<>();
inputs.add(new PathLabel("lena", UtilIO.pathExample("standard/lena512.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 Discrete Pyramid", true);
}
Aggregations