Blobs.moments#
- property Blobs.moments: Any#
Moments of blobs
- Returns:
moments of blobs
- Return type:
named tuple or list of named tuples
Compute multiple moments of each blob and return them as a named tuple with attributes
Moment type
attribute name
moments
m00m10m01m20m11m02m30m21m12m03central moments
mu20mu11mu02mu30mu21mu12mu03|normalized central moments
nu20nu11nu02nu30nu21nu12nu03|Example:
>>> from machinevisiontoolbox import Image >>> im = Image.Read('shark2.png') >>> blobs = im.blobs() >>> blobs[0].moments.m00 7590.5 >>> blobs[0].moments.m10 2817649.1666666665