@@ -0,0 +1,508 @@
+import org.opencv.core.Core;%0Aimport org.opencv.core.Mat;%0Aimport org.opencv.core.Size;%0Aimport org.opencv.imgcodecs.Imgcodecs;%0Aimport org.opencv.imgproc.Imgproc;%0A%0Apublic class ImageResize %7B%0A%09public void resize() %7B%0A%09%09System.loadLibrary(Core.NATIVE_LIBRARY_NAME);%0A%09%09Mat im = Imgcodecs.imread(%22/home/marjan/Pictures/digits.jpg%22);%0A%09%09Mat im2 = new Mat();%0A%09%09Size sz = im.size();%0A%09%09Imgproc.resize(im, im2, new Size(sz.width=100, sz.height=100));%0A%09%09Imgcodecs.imwrite(%22/home/marjan/Pictures/grayscale.jpg%22, im2);%0A%09%7D%0A%0A%7D%0A

Create ImageResize.java