1 | initial version |
what you're trying here still does not make any sense to me, anyway, here's the corrected code:
Mat inputs[] = { fruits,lena }, hist;
float range[] = { 0,256 };
const float * histRange[] = {range,range}; // one per image/channel
int histSize[] = {255};
int channels[] = {0,1}; //one per image (count up)
calcHist(inputs, 2, channels, Mat(), hist,2, histSize, histRange);