计算图像的平均灰度值与灰度均方差
Mat mat_mean, mat_stddev;
meanStdDev(InputImage, mat_mean, mat_stddev);//求灰度图像的均值、均方差
m = mat_mean.at<double>(0, 0);
s = mat_stddev.at<double>(0, 0);
计算图像的平均灰度值与灰度均方差
Mat mat_mean, mat_stddev;
meanStdDev(InputImage, mat_mean, mat_stddev);//求灰度图像的均值、均方差
m = mat_mean.at<double>(0, 0);
s = mat_stddev.at<double>(0, 0);