In the openCV cheat sheet (C++), I have found the matrix opration mean(). When I use it:
float myMatMean = mean( MyMat ); I get the error:
no suitable conversion function from "cv::Scalar" to "float" exists
What can I do in order to use this data?
mean()appears to be returning a variable of typecv::Scalarso trycv::Scalar myMatMean = mean(MyMat);