OpenCV图像处理(8)——图像平均灰度值、均方差

计算图像的平均灰度值与灰度均方差

Mat  mat_mean, mat_stddev;
meanStdDev(InputImage, mat_mean, mat_stddev);//求灰度图像的均值、均方差
m = mat_mean.at(0, 0);
s = mat_stddev.at(0, 0);

你可能感兴趣的:(opencv,计算机视觉,matlab,图像识别,algorithm)