Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Region Features » RegionNumberOfHoles

RegionNumberOfHoles


Computes the number of holes in a region.

Name Type Range Description
inRegion Region Input region
inConnectivity RegionConnectivity Region connectivity semantics
inMinHoleArea Integer 0 - Minimal area of a hole
inMaxHoleArea Integer* 0 - Maximal area of a hole
outNumberOfHoles Integer

Description

The operation computes the number of region holes. Holes of a region are those connected areas of pixels not belonging to the region, that do not touch the boundary of the region frame.

Examples

The number of holes in the sample (left) region equals to 3. The holes are presented on the right image.

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • FillRegionHoles – Extends the input region so that it contains also all the pixels previously lying in its holes.