get histogram data from Mat , opencv android
i am working on an android project using opencv , i am creating a histogram for a black and white image (1-0 values on image file) . i am following some tutorials i found on internet on how to create the histogram . i am doing something like this ArrayList<Mat> list = new ArrayList<Mat>(); list.add(mRgba); MatOfInt channels = new MatOfInt(0); Mat hist= new Mat(); MatOfInt histSize = new MatOfInt(25); MatOfFloat ranges = new MatOfFloat(0f, 1f); Imgproc.calcHist(list, channels, new Mat(), hist, histSize, ranges); Then i want to view the data on hist Mat, if i try something like this... for(int i