OpenCV function to Obtain 3rd/4th order moments

asked 2018-03-11 08:36:27 -0600

JakeM gravatar image

Is there an OpenCV function to retrieve the 3rd and 4th order moments? Or do I need to calculate these myself?

Ie, I am trying to obtain the skewness and kurtosis of a blob/contour.

If I were to calculate the 3rd and 4th order moment myself, (in OpenCV) can I just determine this by using mathematics and a cv::Moments I have calculated? Or must I also generate a histogram?

edit retag flag offensive close merge delete

Comments

3rd moments of a shape : yes

4th moments of a shape : no

For kurtosis and skewness you will have to calculate yourself

LBerger gravatar imageLBerger ( 2018-03-11 09:09:33 -0600 )edit