Ask Your Question

Is there a built-in function to calculate the variance of a cv::Mat ?

asked 2015-01-28 12:59:02 -0500

Dionysos gravatar image

This is in order to normalize the cv::Mat before feeding it to an ANN

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-28 13:09:52 -0500

Guanta gravatar image

Yes, there exist the function meanStdDev(). Since the standard deviation is the square root of the variance, you just need to square the result.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-01-28 12:59:02 -0500

Seen: 19,258 times

Last updated: Jan 28 '15