CountBlobs

Author : Melanie Rhianna Lewis
Input Type : TrianaPixelMap
Output Type : Const
Date :

Counts the number of distinctly separate non black objects in an image. Ie any area of pixels completely surrounded by black pixels

Example

The image below has 7 distinct objects. (Red, Green, Cyan, Magenta, Green, Yellow and White).

Before operation

Which results in the following output:

See also

GetHoles