1
public static void m3() {
URL url = ClassLoader.getSystemResource("lib/opencv_java440.dll");
System.out.println("url.getPath() ===== " + url.getPath());
System.load(url.getPath());
System.out.println("Welcome to OpenCV " + Core.VERSION);
Mat m = new Mat(5, 10, CvType.CV_8UC1, new Scalar(0));
System.out.println("OpenCV Mat: " + m);
Mat mr1 = m.row(1);
mr1.setTo(new Scalar(1));
Mat mc5 = m.col(5);
mc5.setTo(new Scalar(5));
System.out.println("OpenCV Mat data:
" + m.dump());
}