Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@sturkmen Sorry I was wrong in previous comment. nimages parameter of histPrepareImages() is not what I passed to calcHist() as numberOfBins. Rather, after carefully comparing the parameters of histPrepareImages(), calcHist() here for C++, and the ones shown in Eclipse (IDE) Javadoc, I learnt that Android API does not have a int nimages argument for calcHist(). For Android API, the calcHist() is Imgproc.calcHist(images, channels, mask, hist, histSize, ranges);

@sturkmen Sorry I was wrong in previous comment. nimages parameter of histPrepareImages() is not what I passed to calcHist() as numberOfBins. Rather, after carefully comparing the parameters of histPrepareImages() here, calcHist() here for C++, and the ones shown in Eclipse (IDE) Javadoc, I learnt that Android API does not have a int nimages argument for calcHist(). For Android API, the calcHist() is Imgproc.calcHist(images, channels, mask, hist, histSize, ranges);