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});
2 | No.2 Revision |
for the reference, here's what i came up with:
Mat img(8,8,CV_8U);
randu(img,0,255);
Mat calcHist(vector<mat>{img},