Search in sources :

Example 6 with ImageType

use of boofcv.struct.image.ImageType 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 7 with ImageType

use of boofcv.struct.image.ImageType 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 8 with ImageType

use of boofcv.struct.image.ImageType in project BoofCV by lessthanoptimal.

the class DeformImageKeyPointsApp method main.

public static void main(String[] args) {
    ImageType type = ImageType.pl(3, GrayU8.class);
    List<PathLabel> inputs = new ArrayList<>();
    inputs.add(new PathLabel("Man MLS", UtilIO.pathExample("standard/man_mls.jpg")));
    inputs.add(new PathLabel("Mona Lisa", UtilIO.pathExample("standard/mona_lisa.jpg")));
    inputs.add(new PathLabel("Drawing Face", UtilIO.pathExample("drawings/drawing_face.png")));
    DeformImageKeyPointsApp app = new DeformImageKeyPointsApp(inputs, type);
    app.openFile(new File(inputs.get(0).getPath()));
    app.waitUntilInputSizeIsKnown();
    ShowImages.showWindow(app, "Deform Image Key Points", true);
}
Also used : PathLabel(boofcv.io.PathLabel) ArrayList(java.util.ArrayList) File(java.io.File) ImageType(boofcv.struct.image.ImageType)

Example 9 with ImageType

use of boofcv.struct.image.ImageType 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 10 with ImageType

use of boofcv.struct.image.ImageType 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)

Aggregations

ImageType (boofcv.struct.image.ImageType)36 Test (org.junit.Test)19 ImageBase (boofcv.struct.image.ImageBase)14 ArrayList (java.util.ArrayList)11 File (java.io.File)10 PathLabel (boofcv.io.PathLabel)7 BackgroundModelMoving (boofcv.alg.background.BackgroundModelMoving)4 Homography2D_F32 (georegression.struct.homography.Homography2D_F32)4 Se3_F64 (georegression.struct.se.Se3_F64)4 BufferedImage (java.awt.image.BufferedImage)4 GrayU8 (boofcv.struct.image.GrayU8)3 BackgroundModelStationary (boofcv.alg.background.BackgroundModelStationary)2 ConfigBackgroundBasic (boofcv.factory.background.ConfigBackgroundBasic)2 ConfigBackgroundGaussian (boofcv.factory.background.ConfigBackgroundGaussian)2 ConfigBackgroundGmm (boofcv.factory.background.ConfigBackgroundGmm)2 ImageGridPanel (boofcv.gui.image.ImageGridPanel)2 MediaManager (boofcv.io.MediaManager)2 ConvertBufferedImage (boofcv.io.image.ConvertBufferedImage)2 SimpleImageSequence (boofcv.io.image.SimpleImageSequence)2 DefaultMediaManager (boofcv.io.wrapper.DefaultMediaManager)2