Back to FabImage Library website

You are here: Start » Function Reference » Region » Region Features » RegionHoles

RegionHoles


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Creates regions of the holes of the input region.

Syntax

C++
C#
 
void fil::RegionHoles
(
	const fil::Region& inRegion,
	fil::RegionConnectivity::Type inConnectivity,
	int inMinHoleArea,
	ftl::Optional<int> inMaxHoleArea,
	ftl::Array<fil::Region> & outHoles
)

Parameters

Name Type Range Default Description
Input value inRegion const Region& Input region
Input value inConnectivity RegionConnectivity::Type Region connectivity semantics
Input value inMinHoleArea int 0 - 1 Minimal area of a resulting hole
Input value inMaxHoleArea Optional<int> 0 - NIL Maximal area of a resulting hole
Output value outHoles Array<Region> &

Description

The operation computes regions representing holes of input region. 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

RegionHoles run on a sample region.

See Also

  • FillRegionHoles – Adds pixels to the input region so that it contains no holes.