-1
墊<>的BufferedImage轉換顯然,它在OpenCV中2.4是可能的,Java綁定到轉換Mat
成BufferedImage
:在OpenCV中3
val greyMat = new Mat()
opencv_imgproc.cvtColor(mat, greyMat, opencv_imgproc.CV_BGR2GRAY, 1)
ImageIO.write(greyMat.getBufferedImage, "jpg", new File("output_grey.jpg"))
我試圖更新該使用該代碼的項目(和它的工作,我檢查了)使用OpenCV 3.1,似乎這種方法已經消失。
爲什麼這種方法getBufferedImage
從API中刪除,我該如何回到它?