2014-07-15 12:28:28 -0600 | received badge | ● Student (source) |
2014-04-25 14:34:40 -0600 | asked a question | How to access 3D histogram data - OpenCV Java I am writing a java program to calculate a 3-Dimensional histogram of R,G,B channels. I am unable to find out how to access the resulting 3 dimensional histogram (the Mat object which represents the histogram). My code is like below - the above calcHist method runs and returns the histogram (which is basically a Mat object) which has 3 dimensions and 1000 (10x10x10) total values. The question is how to access this histogram? Rows and Colums return -1 (as expected for a 3D Mat). Can someone help? |