Holes Construction

Code Snippets

A hole is a set of connected pixels that are entirely surrounded by a parent object (4 or 8 pixels depending on the connexity mode).

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

EObject and EHole classes both derive from ECodedElement, so objects and holes are managed in the same way and share the same functions.

HolesConstructionWhiteLayer

Encoding the white layer (3 objects and 3 holes)

Encoding the black layer (4 objects and 3 holes)