//create the mask
Mat source;//the source image
Mat test(1024,800,CV_8UC1);
cv::inRange(source, 150, 200, test);
cv::Scalar try_mean, try_stdev;
cv::meanStdDev(source, try_mean, try_stdev, test);
these are how i do the get the mask and pass it as mask argument. Do i create the mask correctly? but still the mean and std dev is not the same as halcon’s