OpenCV function to Obtain 3rd/4th order moments
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?
3rd moments of a shape : yes
4th moments of a shape : no
For kurtosis and skewness you will have to calculate yourself