Esempio n. 1
0
 public static void findContour(String filename) throws IOException, InterruptedException {
   Mat m = Imgcodecs.imread(filename, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);
   //		Mat mg = new Mat(m.rows(), m.cols(), m.type());
   //		Imgproc.cvtColor(m, mg, Imgproc.COLOR_RGB2GRAY);
   //		Shape.findContour(m);
   Shape mm = new Shape(new Icecream(m));
   Printer.printArray(mm.moments);
 }
Esempio n. 2
0
 public static void cvhog(String filename) {
   Mat m = Imgcodecs.imread(filename, Imgcodecs.CV_LOAD_IMAGE_ANYCOLOR);
   Printer.printArray(Texture.getPatchHog(m));
   System.out.println(Texture.angleOfsHOG(m).dump());
 }