Back to Adaptive Vision Library website
You are here: Start » Function Reference » Computer Vision » Image Segmentation » ExtractBlobs_Dynamic
ExtractBlobs_Dynamic
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationBasic |
Segments an image into blobs by dynamic thresholding.
Syntax
C++
C#
void avl::ExtractBlobs_Dynamic ( const avl::Image& inImage, atl::Optional<const avl::ShapeRegion&> inRoi, atl::Optional<const avl::CoordinateSystem2D&> inRoiAlignment, const avl::DynamicThresholdParams& inThresholdParams, const avl::RegionProcessingParams& inRegionProcessingParams, const avl::BlobSplittingParams& inBlobSplittingParams, atl::Array<avl::Region>& outBlobs, atl::Array<int>& diagBlobAreas, avl::Region& diagBaseRegion )
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 | ||
inRegionProcessingParams | const RegionProcessingParams& | Parameters for opening and closing of a region | ||
inBlobSplittingParams | const BlobSplittingParams& | Parameters for splitting region into blobs | ||
outBlobs | Array<Region>& | Blobs extracted from the input image | ||
diagBlobAreas | Array<int>& | Areas of extracted blobs | ||
diagBaseRegion | 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 using parameters from inRegionProcessingParams
- resulting region is split into blobs by SplitRegionIntoBlobs using parameters from inBlobSplittingParams
Examples
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.
- ExtractBlobs_DoG – Segments an image into blobs by thresholding Difference of Gaussians.