You are here: Start » AVL.NET » AVL.ExtractBlobs_Color(AvlNet.Image, AvlNet.Region, AvlNet.ColorThresholdParams, AvlNet.RegionProcessingParams, AvlNet.BlobSplittingParams, AvlNet.Region[])
AVL.ExtractBlobs_Color(AvlNet.Image, AvlNet.Region, AvlNet.ColorThresholdParams, AvlNet.RegionProcessingParams, AvlNet.BlobSplittingParams, AvlNet.Region[])
Segments an image into blobs by color-based thresholding.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void ExtractBlobs_Color( AvlNet.Image inImage, AvlNet.Region inRoi, AvlNet.ColorThresholdParams inThresholdParams, AvlNet.RegionProcessingParams inRegionProcessingParams, AvlNet.BlobSplittingParams inBlobSplittingParams, out AvlNet.Region[] outBlobs )
Parameters
- inImage
- Type: AvlNet.Image
Image from which blobs are extracted - inRoi
- Type: AvlNet.Region
Range of pixels to be processed, or null. - inThresholdParams
- Type: AvlNet.ColorThresholdParams
Parameters for color-based thresholding - inRegionProcessingParams
- Type: AvlNet.RegionProcessingParams
Parameters for opening and closing of a region - inBlobSplittingParams
- Type: AvlNet.BlobSplittingParams
Parameters for splitting region into blobs - outBlobs
- Type: AvlNet.Region
Blobs extracted from the input image
Description
This filter can be used to quickly segment an image using color-based thresholding. It performs a series of operations on inImage:
- image is thresholded by ThresholdToRegion_Color 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
![]() |
![]() |
ExtractBlobs_Color performed on the sample image with inThresholdParams.RgbColor = (189, 36, 25), inThresholdParams.MaxDifference = 40.0 and inRegionProcessingParams.ClosingRadius = 5.


