C++自定义直方图统计
Mat HistCalculate(Mat img) { Mat img_dect = img; img_dect.at<Vec3b>(0, 0)[0]; //获得图像大小 int width = img_dect.cols; int hight = img_dect.rows; //统计直方图数据分别累加每个颜色值的数量 float B[256] = { 0.0 };...