Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

for the reference, here's what i came up with:

Mat img(8,8,CV_8U); randu(img,0,255); Mat hist;

calcHist(vector<mat>{img}, vector<int>{0}, Mat(), hist, vector<int>{16}, vector<float>{0,255});

for the reference, here's what i came up with:

Mat img(8,8,CV_8U);
randu(img,0,255);
Mat hist;

hist;

calcHist(vector<mat>{img}, calcHist(vector<Mat>{img}, vector<int>{0}, Mat(), hist, vector<int>{16}, vector<float>{0,255});

vector<float>{0,255});