Back to FabImage Library website

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

RegionHoles_Elastic


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Fills a ridges region with convex basins.

Syntax

C++
C#
 
void fil::RegionHoles_Elastic
(
	const fil::Region& inRegion,
	ftl::Optional<const fil::Region&> inRoi,
	int inDistanceThreshold,
	ftl::Array<fil::Region>& outBasins
)

Parameters

Name Type Default Description
Input value
inRegion const Region& Input region
Input value
inRoi Optional<const Region&> NIL Range of pixels to be processed
Input value
inDistanceThreshold int 5
Output value
outBasins Array<Region>&

Description

This filter fills a regions holes with convex basins based on a flooding algorithm.

The parameter inDistanceThreshold can be used to ignore smaller holes of the input region.

Examples

Example region

Computed region holes

Computed region holes where the threshold has been increased to ignore the smaller hole

See Also