public static void testLoadingImage(String[] args) { System.out.println("Loading image data: ex 0"); if (args.length < 1) { System.out.println("Usage: java ImageManipulation image"); System.exit(0); } // load input image BufferedImage bimg = ImageManipulation.loadImage(args[0]); int dimx = bimg.getWidth(); int dimy = bimg.getHeight(); // get array of pixels from image, in L*u*v* space WritableRaster raster = bimg.getRaster(); System.out.println("Pixels array created from image"); // build point cloud from raster int dim = 3; PointCloud N = ImageManipulation.rasterToPointCloud(raster, dimx, dimy, dim); // draw input image and corresponding point cloud System.out.println("dim = " + dim + ", size = " + PointCloud.size(N)); Draw.draw3D(N); Fenetre fInput = new Fenetre(bimg, "input image"); }