void hist_compare(Mat src1, Mat src2) { int histSize[] = { 256, 256, 256 }; int channels[] = { 0, 1, 2 }; Mat hist1, hist2; float c1[] = { 0, 255 }; float c2[] = { 0, 255 }; float c3[] = { 0, 255 }; const float* histRanges[] = { c1, c2, c3 }; calcHis…