Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvMoments

cvMoments


Module: OpenCV

Calculates image moments.

Name Type Description
inSrc Image
inBinaryImage Bool
outSpatialMoments RealArray Moments: m00, m10, m01, m20, m11, m02, m30, m21, m12, m03
outCentralMoments RealArray Moments: mu20, mu11, mu02, mu30, mu21, mu12, mu03
outCentralNormalizedMoments RealArray Moments: nu20, nu11, nu02, nu30, nu21, nu12, nu03

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Filter supports only single channel pixels of type float or UINT8 in cvMoments.

Complexity Level

This filter is available on Basic Complexity Level.