Back to FabImage Library website
You are here: Start » Function Reference » Computer Vision » Image Segmentation » ExtractBlobs_Dynamic

ExtractBlobs_Dynamic
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Segments an image into blobs by dynamic thresholding.
Syntax
C++
C#
void fil::ExtractBlobs_Dynamic ( const fil::Image& inImage, ftl::Optional<const fil::ShapeRegion&> inRoi, ftl::Optional<const fil::CoordinateSystem2D&> inRoiAlignment, const fil::DynamicThresholdParams& inThresholdParams, const fil::PreSplitProcessingParams& inProcessingParams, const fil::SplittingParams& inSplittingParams, ftl::Array<fil::Region>& outBlobs, fil::Region& outBaseRegion )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inImage | const Image& | Image from which blobs are extracted | |
![]() |
inRoi | Optional<const ShapeRegion&> | NIL | Range of pixels to be processed |
![]() |
inRoiAlignment | Optional<const CoordinateSystem2D&> | NIL | Adjusts the region |
![]() |
inThresholdParams | const DynamicThresholdParams& | Parameters for dynamic thresholding | |
![]() |
inProcessingParams | const PreSplitProcessingParams& | Parameters for postprocessing of the extracted region | |
![]() |
inSplittingParams | const SplittingParams& | Parameters for splitting region into blobs | |
![]() |
outBlobs | Array<Region>& | Blobs extracted from the input image | |
![]() |
outBaseRegion | Region& | Region of pixels right after thresholding |
Description
This filter can be used to quickly segment an image with uneven illumination. It performs a series of operations on inImage:
- image is thresholded by ThresholdToRegion_Dynamic using parameters from inThresholdParams
- resulting region is opened and then closed by OpenRegion and CloseRegion, also holes are removed by FillRegionHoles using parameters from inProcessingParams
- resulting region is split into blobs by SplitRegionIntoBlobs using parameters from inSplittingParams
Examples
![]() |
![]() |
ExtractBlobs_Dynamic performed on the sample image with inThresholdParams.Polarity = Dark, inThresholdParams.Threshold = 5.0, and inProcessingParams.ClosingRadius = 3
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Region exceeds an input image in ExtractBlobs_Dynamic. |
See Also
- ExtractBlobs_Intensity – Segments an image into blobs by thresholding.
- ExtractBlobs_Color – Segments an image into blobs by color-based thresholding.