Search in sources :

Example 6 with PathLabel

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

the class ShowImageBlurApp method main.

public static void main(String[] args) {
    // ShowImageBlurApp<GrayF32> app = new ShowImageBlurApp<>(GrayF32.class);
    ShowImageBlurApp<GrayU8> app = new ShowImageBlurApp<>(GrayU8.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, "Image Blur", true);
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) GrayU8(boofcv.struct.image.GrayU8)

Example 7 with PathLabel

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

the class ShowImageDerivative method main.

public static void main(String[] args) {
    ShowImageDerivative<GrayF32, GrayF32> app = new ShowImageDerivative<>(GrayF32.class, GrayF32.class);
    // ShowImageDerivative<GrayU8, GrayS16> app
    // = new ShowImageDerivative<GrayU8,GrayS16>(GrayU8.class,GrayS16.class);
    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")));
    inputs.add(new PathLabel("xray", UtilIO.pathExample("xray01.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 Derivative", true);
}
Also used : GrayF32(boofcv.struct.image.GrayF32) PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList)

Example 8 with PathLabel

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

the class RemoveLensDistortionApp method main.

public static void main(String[] args) {
    ImageType type = ImageType.pl(3, GrayU8.class);
    java.util.List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Sony HX5V", UtilIO.pathExample("structure/dist_cyto_01.jpg")));
    inputs.add(new PathLabel("BumbleBee2", UtilIO.pathExample("calibration/stereo/Bumblebee2_Chess/left01.jpg")));
    RemoveLensDistortionApp app = new RemoveLensDistortionApp(inputs, type);
    app.openFile(new File(inputs.get(0).getPath()));
    app.display("Remove Lens Distortion");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) File(java.io.File) ImageType(boofcv.struct.image.ImageType)

Example 9 with PathLabel

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

the class RenderSyntheticCamerModelApp method main.

public static void main(String[] args) {
    ImageType type = ImageType.pl(3, GrayU8.class);
    List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Sony HX5V", UtilIO.pathExample("structure/dist_cyto_01.jpg")));
    inputs.add(new PathLabel("BumbleBee2", UtilIO.pathExample("calibration/stereo/Bumblebee2_Chess/left01.jpg")));
    RenderSyntheticCamerModelApp app = new RenderSyntheticCamerModelApp(inputs, type);
    app.openFile(new File(inputs.get(0).getPath()));
    app.display("Render Synthetic Camera Model");
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) File(java.io.File) ImageType(boofcv.struct.image.ImageType)

Example 10 with PathLabel

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

the class VisualizeAssociationAlgorithmsApp method main.

public static void main(String[] args) {
    Class imageType = GrayF32.class;
    VisualizeAssociationAlgorithmsApp app = new VisualizeAssociationAlgorithmsApp(imageType);
    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);
}
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