2
Mat sobel = new Mat();
Imgproc.Sobel(threshold,sobel, sobel.depth(), 1, 0);
Highgui.imwrite("Sobel.jpg", sobel);
sobel.create(sobel.height(),sobel.width(), CvType.CV_8UC(2));
System.out.println(sobel.dump());
//display matrix
然後我試圖得到索貝爾的數組。但是我很困惑如何從Mat中獲得價值並將其放入Array中。
我希望我能給予好評的兩倍!謝謝! –