Search in sources :

Example 31 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class FisheyePinholeApp method main.

public static void main(String[] args) {
    ImageType type = ImageType.pl(3, GrayU8.class);
    List<PathLabel> examples = new ArrayList<>();
    examples.add(new PathLabel("Dining Room", UtilIO.pathExample("fisheye/theta/front_table.jpg")));
    examples.add(new PathLabel("Hike", UtilIO.pathExample("fisheye/theta/front_hike.jpg")));
    FisheyePinholeApp app = new FisheyePinholeApp(examples, type);
    app.openFile(new File(examples.get(0).getPath()));
    app.display("Fisheye to Pinhole Camera");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) File(java.io.File) ImageType(boofcv.struct.image.ImageType)

Example 32 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class VisualizeRegionDescriptionApp method main.

public static void main(String[] args) {
    Class imageType = GrayF32.class;
    Class derivType = GImageDerivativeOps.getDerivativeType(imageType);
    VisualizeRegionDescriptionApp app = new VisualizeRegionDescriptionApp(imageType, derivType);
    java.util.List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Cave", UtilIO.pathExample("stitch/cave_01.jpg")));
    inputs.add(new PathLabel("Kayak", UtilIO.pathExample("stitch/kayak_02.jpg")));
    inputs.add(new PathLabel("Forest", UtilIO.pathExample("scale/rainforest_01.jpg")));
    app.setPreferredSize(new Dimension(500, 500));
    app.setSize(500, 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, "Region Descriptor Visualization", true);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 33 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class ShowEdgeContourApp method main.

public static void main(String[] args) {
    ShowEdgeContourApp<GrayF32, GrayF32> app = new ShowEdgeContourApp<>(GrayF32.class, GrayF32.class);
    // ShowFeatureOrientationApp<GrayU8, GrayS16> app =
    // new ShowFeatureOrientationApp<GrayU8,GrayS16>(input,GrayU8.class, GrayS16.class);
    List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("shapes", UtilIO.pathExample("shapes/shapes01.png")));
    inputs.add(new PathLabel("Room", UtilIO.pathExample("indoors01.jpg")));
    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, "Contours", true);
    System.out.println("Done");
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 34 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class CompareFeatureExtractorApp method main.

public static void main(String[] args) {
    CompareFeatureExtractorApp app = new CompareFeatureExtractorApp(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("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, "Feature Extraction", true);
    System.out.println("Done");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 35 with PathLabel

use of boofcv.io.PathLabel in project BoofCV by lessthanoptimal.

the class IntensityPointFeatureApp method main.

public static void main(String[] args) {
    java.util.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", UtilIO.pathExample("shapes/shapes01.png")));
    examples.add(new PathLabel("sunflowers", UtilIO.pathExample("sunflowers.jpg")));
    examples.add(new PathLabel("beach", UtilIO.pathExample("scale/beach02.jpg")));
    examples.add(new PathLabel("Chessboard Movie", UtilIO.pathExample("fiducial/chessboard/movie.mjpeg")));
    IntensityPointFeatureApp<GrayU8, GrayS16> app = new IntensityPointFeatureApp(examples, GrayU8.class);
    app.openExample(examples.get(0));
    app.waitUntilInputSizeIsKnown();
    app.display("Feature Intensity");
}
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