how to create matrix R,G,B from image in openCv . matSrcBRG is Mat variable . and my image is img_about
try {
matSrcBGR = Utils.loadResource(context, R.raw.img_about);
} catch (IOException e) {
e.printStackTrace();
}
int rows = matSrcBGR.rows(); //Calculates number of rows
int cols = matSrcBGR.cols(); //Calculates number of columns
int ch = matSrcBGR.channels(); //Calculates number of channels (Grayscale: 1, RGB: 3, etc.)
double[] bgrColor = matSrcBGR.get(matSrcBGR.rows(), matSrcBGR.cols());