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");
}
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");
}
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);
}
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");
}
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");
}
Aggregations