Back to FabImage Library website

You are here: Start » Function Reference » Computer Vision » Image Segmentation » ExtractBlobs_Color_Deprecated

ExtractBlobs_Color_Deprecated


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Segments an image into blobs by color-based thresholding.

Syntax

void fil::ExtractBlobs_Color_Deprecated
(
	const fil::Image& inImage,
	ftl::Optional<const fil::Region&> inRoi,
	const fil::ColorThresholdParams& inThresholdParams,
	const fil::RegionProcessingParams& inRegionProcessingParams,
	const fil::BlobSplittingParams& inBlobSplittingParams,
	ftl::Array<fil::Region>& outBlobs,
	ftl::Array<int>& diagBlobAreas,
	fil::Region& diagBaseRegion
)

Parameters

Name Type Default Description
Input value
inImage const Image& Image from which blobs are extracted
Input value
inRoi Optional<const Region&> NIL Range of pixels to be processed
Input value
inThresholdParams const ColorThresholdParams& Parameters for color-based thresholding
Input value
inRegionProcessingParams const RegionProcessingParams& Parameters for opening and closing of a region
Input value
inBlobSplittingParams const BlobSplittingParams& Parameters for splitting region into blobs
Output value
outBlobs Array<Region>& Blobs extracted from the input image
Diagnostic input
diagBlobAreas Array<int>& Areas of extracted blobs
Diagnostic input
diagBaseRegion Region& Region of pixels right after thresholding

Requirements

For input inImage only pixel formats are supported: 1⨯uint8, 2⨯uint8, 3⨯uint8, 4⨯uint8.

Read more about pixel formats in Image documentation.

Errors

List of possible exceptions:

Error type Description
DomainError Not supported inImage pixel format in ExtractBlobs_Color_Deprecated. Supported formats: 1xUInt8, 2xUInt8, 3xUInt8, 4xUInt8.