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
This is in order to normalize the cv::Mat before feeding it to an ANN
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: 2015-01-28 12:59:02 -0600
Seen: 24,060 times
Last updated: Jan 28 '15