@Override public ImageType<Planar<GrayU8>> getInputType() { return ImageType.pl(3,GrayU8.class); }
@Override public ImageType<Planar<GrayF32>> getInputType() { return ImageType.pl(3,GrayF32.class); }
@Override public ImageType<Planar<GrayU8>> getInputType() { return ImageType.pl(3,GrayU8.class); }
@Override public ImageType<Planar<GrayF32>> getInputType() { return ImageType.pl(3,GrayF32.class); }
public SegmentSlic_PlU8(int numberOfRegions, float m, int totalIterations, ConnectRule connectRule , int numBands) { super(numberOfRegions, m , totalIterations, connectRule,ImageType.pl(numBands, GrayU8.class)); }
public SegmentSlic_PlF32(int numberOfRegions, float m, int totalIterations, ConnectRule connectRule, int numBands) { super(numberOfRegions, m , totalIterations, connectRule,ImageType.pl(numBands,GrayF32.class)); }
/** * Declares internal arrays for storing each band, but not the images in each band. * * @param type The type of image which each band is stored as. * @param numBands Number of bands in the image. */ public Planar(Class<T> type, int numBands) { this.type = type; this.bands = (T[]) Array.newInstance(type, numBands); this.imageType = ImageType.pl(numBands,type); }
public SegmentationProcessing(ImageSuperpixels<Planar<GrayU8>> segmentation) { super(ImageType.pl(3, GrayU8.class)); this.segmentation = segmentation; this.colorize = FactorySegmentationAlg.regionMeanColor(segmentation.getImageType()); }
public ImageGradient_PL(ImageGradient<T, D> bandGradient , int numBands ) { this.bandGradient = bandGradient; derivType = ImageType.pl(numBands,bandGradient.getDerivativeType().getImageClass()); }
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"); }
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"); } }
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"); } }
@Override public void createNewProcessor() { Log.e("Undistort","Set Processing!"); if( isColor ) { setProcessing(new UndistortProcessing(ImageType.pl(3,GrayU8.class))); } else { setProcessing(new UndistortProcessing(ImageType.single(GrayU8.class))); } }
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"))); EquirectangularCylinderApp app = new EquirectangularCylinderApp(examples,type); app.openFile(new File(examples.get(0).getPath())); app.display("Equirectanglar to Cylindrical"); }
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"); } }
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"); }
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); } }
public SurfPlanar_to_DescribeRegionPoint(DescribePointSurfPlanar<II> alg, Class<T> imageType, Class<II> integralType ) { this.alg = alg; gray = GeneralizedImageOps.createSingleBand(imageType, 1, 1); grayII = GeneralizedImageOps.createSingleBand(integralType,1,1); bandII = new Planar<>(integralType, 1, 1, alg.getNumBands()); this.imageType = ImageType.pl(alg.getNumBands(), imageType); }
public VideoStitchBaseApp(int numAlgFamilies, Class imageType, boolean color , Motion2DPanel gui) { super(numAlgFamilies, color ? ImageType.pl(3, imageType) : ImageType.single(imageType)); this.gui = gui; gui.addMouseListener(this); setMainGUI(gui); infoPanel.setMaximumSize(infoPanel.getPreferredSize()); add(infoPanel, BorderLayout.WEST); }