Holes Construction

Code Snippets

A hole In EasyObject, a hole is a maximally-sized area of adjacent connected pixels belonging to the layer background that is completely surrounded by an object. is a set of connected pixels that are entirely surrounded by a parent object In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground. (4 or 8 pixels depending on the connexity mode).

A hole has no child. Objects inside a hole are considered as separate objects.

Objects and holes are both represented by the class ECodedElement, so they are managed in the same way and share the same functions. Use ECodedElement.IsObject or ECodedElement.IsHole to determine the type of the coded element An object or a hole..

HolesConstructionWhiteLayer

Encoding the white layer A binary image constructed by a segmentation process. (3 objects and 3 holes)

Encoding the black layer (4 objects and 3 holes)