You are here: Start » AVL.NET » AVL.ExtractBlobs_Color Method

AVL.ExtractBlobs_Color Method

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,
	out int[] diagBlobAreas,
	out AvlNet.Region diagBaseRegion
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageImage from which blobs are extracted.
inRoiAvlNet.RegionRange of pixels to be processed. Default value: atl::NIL, or null.
inThresholdParamsAvlNet.ColorThresholdParamsParameters for color-based thresholding.
inRegionProcessingParamsAvlNet.RegionProcessingParamsParameters for opening and closing of a region.
inBlobSplittingParamsAvlNet.BlobSplittingParamsParameters for splitting region into blobs.
outBlobsAvlNet.RegionBlobs extracted from the input image.
diagBlobAreasintAreas of extracted blobs.
diagBaseRegionAvlNet.RegionRegion of pixels right after thresholding.

Description

This filter can be used to quickly segment an image using color-based thresholding. It performs a series of operations on inImage:

Examples

ExtractBlobs_Color performed on the sample image with inThresholdParams.RgbColor = (189, 36, 25), inThresholdParams.MaxDifference = 40.0 and inRegionProcessingParams.ClosingRadius = 5.

See also