1 | initial version |
if you squint hard at the docs , you'll see:
so that the results can be stored in Scalar_ 's.
// so, use a cv::Scalar for mean & stddev, and there'll be no guessing required.
Mat image = ...
Scalar mean,dev;
meanStdDev(image, mean,dev);
double mean_of_channel_2 = mean[2];