How to access 3D Histogram values in C++ using OpenCV?
问题 I am trying to access an 3D histogram of a RGB image. But the histogram matrix returns the number of rows and columns equal to -1. I want to iterate through the histogram and check the individual values in the 3D matrix. But, when I check the number of rows and columns in the matrix, I get -1 as shown below. CODE int main( int argc, const char** argv ) { Mat image = imread("fl.png"); int histSize[3] = {8, 8, 8}; float range[2] = {0, 256}; const float * ranges[3] = {range, range, range}; int