Mat im= Imgcodecs.imread(d); Mat inp=new Mat(); Mat newinp=new Mat(); inp.convertTo(newinp, CvType.CV_64F); java.util.List<mat> 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???????