I have computed mean and standart deviation values of a region in the image. The code:
Mat img=imread(\"a.jpg\"); Mat hsv1; Mat mean, stdev; cvtColor(img, hsv1,
The problem here is that you're trying to access a CV_64F Mat using at.
CV_64F
Mat
at
You can solve this like:
double Mi = mean.at(0,0);
Or declaring Scalar instead of Mat:
Scalar
Scalar mean, stdev; cv::meanStdDev(hsv1, mean, stdev, superpixel_mask); double Mi = mean[0];