Histograms are collected counts of data organized into a set of predefined bins refracted class for histogram: given an input image, output the histogram image class atsHistogram { public: cv::Mat DrawHistogram(Mat src) { /// Separate the image in 3 places ( R, G and B ) vector<Mat> rgb_planes; split( src, rgb_planes ); /// Establish the number of bins int histSize = 255; /// Set the ranges ( for R,G,B) ) float range[] = { 0, 255 } ; const float* histRange = { range }; bool uniform = true; bool accumulate = false; ...
Aresh T. Saharkhiz