OpenCV 计算均值方差

cv::Mat   img;
Scalar     mean;
Scalar     stddev;

cv::meanStdDev ( img, mean, stddev );
uchar       mean_pxl = mean.val[0];
uchar       stddev_pxl = stddev.val[0];



你可能感兴趣的:(方差,均值)