First time here? Check out the FAQ!

Ask Your Question
1

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

asked Jan 28 '15

Dionysos gravatar image

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Jan 28 '15

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.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jan 28 '15

Seen: 24,232 times

Last updated: Jan 28 '15