Back to Aurora Vision Library website
You are here: Start » Function Reference » Region » Region Features » RegionHoles_Elastic
![](../../img/icon/RegionAnalysis.png)
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 | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
inDistanceThreshold | int | 5 | |
![]() |
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
- SegmentImage_Watersheds – Computes dark or bright watershed basins of an image.