Back to Aurora Vision Library website

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

RegionHoles_Elastic


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Fills a ridges region with convex basins.

Syntax

C++
C#
 
void avl::RegionHoles_Elastic
(
	const avl::Region& inRegion,
	atl::Optional<const avl::Region&> inRoi,
	int inDistanceThreshold,
	atl::Array<avl::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