Search in sources :

Example 16 with PathLabel

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

the class EquirectangularPinholeApp method main.

public static void main(String[] args) {
    ImageType type = ImageType.pl(3, GrayU8.class);
    List<PathLabel> examples = new ArrayList<>();
    examples.add(new PathLabel("Half Dome 01", UtilIO.pathExample("spherical/equirectangular_half_dome_01.jpg")));
    examples.add(new PathLabel("Half Dome 02", UtilIO.pathExample("spherical/equirectangular_half_dome_02.jpg")));
    examples.add(new PathLabel("Glow Sticks", UtilIO.pathExample("spherical/equirectangular_glowsticks.jpg")));
    EquirectangularPinholeApp app = new EquirectangularPinholeApp(examples, type);
    app.openFile(new File(examples.get(0).getPath()));
    app.display("Equirectanglar to Pinhole Camera");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) File(java.io.File) ImageType(boofcv.struct.image.ImageType)

Example 17 with PathLabel

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

the class EquirectangularRotatingApp method main.

public static void main(String[] args) {
    ImageType type = ImageType.pl(3, GrayU8.class);
    List<PathLabel> examples = new ArrayList<>();
    examples.add(new PathLabel("Half Dome 01", UtilIO.pathExample("spherical/equirectangular_half_dome_01.jpg")));
    examples.add(new PathLabel("Half Dome 02", UtilIO.pathExample("spherical/equirectangular_half_dome_02.jpg")));
    examples.add(new PathLabel("Glow Sticks", UtilIO.pathExample("spherical/equirectangular_glowsticks.jpg")));
    EquirectangularRotatingApp app = new EquirectangularRotatingApp(examples, type);
    app.openFile(new File(examples.get(0).getPath()));
    app.display("Equirectanglar Rotator");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) File(java.io.File) ImageType(boofcv.struct.image.ImageType)

Example 18 with PathLabel

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

the class VideoTrackerPointFeaturesApp method main.

public static void main(String[] args) {
    Class imageType = GrayF32.class;
    Class derivType = GrayF32.class;
    // Class defaultType = GrayU8.class;
    // Class derivType = GrayS16.class;
    VideoTrackerPointFeaturesApp app = new VideoTrackerPointFeaturesApp(imageType, derivType);
    java.util.List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Shake", UtilIO.pathExample("shake.mjpeg")));
    inputs.add(new PathLabel("Zoom", UtilIO.pathExample("zoom.mjpeg")));
    inputs.add(new PathLabel("Rotate", UtilIO.pathExample("rotate.mjpeg")));
    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 Tracker", true);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 19 with PathLabel

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

the class VisualizeScaleSpacePyramidApp method main.

public static void main(String[] args) {
    // VisualizePyramidFloatApp<GrayF32> app = new VisualizePyramidFloatApp<>(GrayF32.class);
    VisualizeScaleSpacePyramidApp<GrayU8> app = new VisualizeScaleSpacePyramidApp<>(GrayU8.class);
    java.util.List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("boat", UtilIO.pathExample("standard/boat.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, "Image Float Pyramid", true);
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) GrayU8(boofcv.struct.image.GrayU8)

Example 20 with PathLabel

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

the class VideoMosaicSequentialPointApp method main.

public static void main(String[] args) {
    Class type = GrayF32.class;
    Class derivType = type;
    // Class type = GrayU8.class;
    // Class derivType = GrayS16.class;
    VideoMosaicSequentialPointApp app = new VideoMosaicSequentialPointApp(type, derivType);
    List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Plane 1", UtilIO.pathExample("mosaic/airplane01.mjpeg")));
    inputs.add(new PathLabel("Plane 2", UtilIO.pathExample("mosaic/airplane02.mjpeg")));
    inputs.add(new PathLabel("Shake", UtilIO.pathExample("shake.mjpeg")));
    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, "Video Image Mosaic", true);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) 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