Search in sources :

Example 21 with PathLabel

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");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 22 with PathLabel

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");
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 23 with PathLabel

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");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 24 with PathLabel

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);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 25 with PathLabel

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");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Aggregations

PathLabel (boofcv.io.PathLabel)51 ArrayList (java.util.ArrayList)48 GrayF32 (boofcv.struct.image.GrayF32)14 File (java.io.File)10 ImageType (boofcv.struct.image.ImageType)7 GrayU8 (boofcv.struct.image.GrayU8)4 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)3 BufferedImage (java.awt.image.BufferedImage)3 BufferedReader (java.io.BufferedReader)2 IOException (java.io.IOException)2 SquareImage_to_FiducialDetector (boofcv.abst.fiducial.SquareImage_to_FiducialDetector)1 LensDistortionRadialTangential (boofcv.alg.distort.radtan.LensDistortionRadialTangential)1 ConfigFiducialBinary (boofcv.factory.fiducial.ConfigFiducialBinary)1 ConfigFiducialImage (boofcv.factory.fiducial.ConfigFiducialImage)1 ConfigThreshold (boofcv.factory.filter.binary.ConfigThreshold)1 StereoParameters (boofcv.struct.calib.StereoParameters)1 ActionListener (java.awt.event.ActionListener)1 FileReader (java.io.FileReader)1 Reader (java.io.Reader)1 List (java.util.List)1