Back to Adaptive Vision Library website

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

ExtractBlobs_DoG


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Segments an image into blobs by thresholding Difference of Gaussians.

Syntax

C++
C#
 
void avl::ExtractBlobs_DoG
(
	const avl::Image& inImage,
	atl::Optional<const avl::ShapeRegion&> inRoi,
	atl::Optional<const avl::CoordinateSystem2D&> inRoiAlignment,
	float inStdDev,
	float inStdDevRatio,
	float inKernelRelativeSize,
	const avl::IntensityThresholdParams& inThresholdParams,
	const avl::RegionProcessingParams& inRegionProcessingParams,
	const avl::BlobSplittingParams& inBlobSplittingParams,
	atl::Array<avl::Region>& outBlobs,
	atl::Array<int>& diagBlobAreas,
	avl::Region& diagBaseRegion
)

Parameters

Name Type Range Default Description
Input value
inImage const Image& Image from which blobs are extracted
Input value
inRoi Optional<const ShapeRegion&> NIL Range of pixels to be processed
Input value
inRoiAlignment Optional<const CoordinateSystem2D&> NIL Adjusts the region
Input value
inStdDev float 0.0 - 3.0f Smoothing standard deviation for the smaller Gaussian kernel
Input value
inStdDevRatio float 1.0 - 1.6f Defines how many times larger is the second Gaussian kernel
Input value
inKernelRelativeSize float 0.0 - 3.0 3.0f A multiple of the standard deviation determining the size of the Gaussian kernel
Input value
inThresholdParams const IntensityThresholdParams& Parameters for thresholding an image
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

Description

This filter can be used to quickly segment an image by thresholding Difference of Gaussians. It performs a series of operations on inImage:

Examples

ExtractBlobs_DoG performed on the sample image with inStdDev = 6.0 and inThresholdParams.MaxIntensity = -4.0.

Errors

List of possible exceptions:

Error type Description
DomainError Region exceeds an input image in ExtractBlobs_DoG.

See Also