moments#

rlemasklib.RLEMask.moments()[source][C source]#

Compute image moments, same as cv2.moments.

Returns a dictionary with raw moments (m00, m10, m01, m20, m11, m02, m30, m21, m12, m03), central moments (mu20, mu11, mu02, mu30, mu21, mu12, mu03), and normalized central moments (nu20, nu11, nu02, nu30, nu21, nu12, nu03).

Returns:

Dictionary of moments with same keys as cv2.moments().

Return type:

dict