Ask Your Question
1

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

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

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
2

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

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

Stats

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

Seen: 22,529 times

Last updated: Jan 28 '15