First time here? Check out the FAQ!
answered 2017-06-12 05:53:42 -0600
you can use cv::mean() for this:
Mat image = .... Mat roi( image, Rect(400,210,70,50) ); Scalar m = mean(roi);