Is there a built-in function to calculate the variance of a cv::Mat ?
This is in order to normalize the cv::Mat before feeding it to an ANN
add a comment
Yes, there exist the function meanStdDev(). Since the standard deviation is the square root of the variance, you just need to square the result.
Asked: Jan 28 '15
Seen: 24,232 times
Last updated: Jan 28 '15