I am currently working on an Android application and would like to make back projection. The tutorial I am following is :
The problem I am having is when I use Imgproc.calcHist(...). I cannot seem to figure out what parameters I should pass to this function, which is currently as follows and is giving me an OpenCV error where the assertion fails:
listHueList = new ArrayList<Mat>() {{ add(mHueMat);}};
ch = new MatOfInt(0,0);
mMaskMat = new Mat();
mHistMat = new Mat();
range = new MatOfFloat(0, 256);
Imgproc.calcHist(listHueList, ch, mMaskMat, mHistMat, new MatOfInt() , range);
Could someone be kind enough as to translate the parameters in the tutorial link above to ones which I can easily use through Java syntax?
Thank you