Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

How to convet mat to a double array in java????

$
0
0
Mat im= Imgcodecs.imread(d); Mat inp=new Mat(); Mat newinp=new Mat(); inp.convertTo(newinp, CvType.CV_64F); java.util.List rgb=null; Core.split(newinp, rgb); Mat r1=rgb.get(0); Mat g1=rgb.get(1); Mat b1=rgb.get(2); double[] r = null; double[] b=null; double[] g=null; Now I want to convert Mat r1 to double[] r, Mat g1 to double[] g and Mat b1 to double[] b. What should I do???????

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>