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 | |
---|---|---|---|---|
![]() |
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.