hu_moments#
- rlemasklib.RLEMask.hu_moments()[source][C source]#
Compute the 7 Hu moment invariants [1].
Hu moments are shape descriptors derived from normalized central moments, invariant under translation, scale, and rotation. The first 6 are also invariant under reflection; the 7th changes sign under reflection.
Equivalent to
cv2.HuMoments(cv2.moments(mask)).- Returns:
Array of shape (7,) containing the Hu moment invariants.
- Return type:
np.ndarray
References