You are here: Start » AVL.NET » Function Reference » Computer Vision » Image Segmentation » AVL.SegmentImage_Gray_Tiled

AVL.SegmentImage_Gray_Tiled

Segments an image into blobs examining differences between pixels values, first pass is tiled.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SegmentImage_Gray_Tiled
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.Region> inRoi,
	AvlNet.BlobMergingMethod inMergingMethod,
	AvlNet.RegionConnectivity inConnectivity,
	int inMaxDifference,
	int inHysteresis,
	bool inTonalDrift,
	bool inDirectional,
	int inMinArea,
	int? inMaxArea,
	IList<AvlNet.Region> outBlobs
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.NullableRef<AvlNet.Region>Range of pixels to be processed. Default value: atl::NIL.
inMergingMethodAvlNet.BlobMergingMethodNeighborDefines a criterion by which two pixels can be merged into one blob. Default value: Neighbor.
inConnectivityAvlNet.RegionConnectivity
inMaxDifferenceint<0, INF>5Maximal tonal difference that allows two pixels to be merged into one blob. Default value: 5.
inHysteresisintChange of MaxDifference between first and second iteration.
inTonalDriftboolTrueWhen 'True' blobs can be merged even if the illumination is not even. Default value: True.
inDirectionalboolWhen 'True' the filter can segment results of GradientDirAndPresenceImage.
inMinAreaint<0, INF>20Minimal area of a blob that may be accepted. Default value: 20.
inMaxAreaint?Minimal area of a blob that may be accepted. Default value: atl::NIL.
outBlobsSystem.Collections.Generic.IList<AvlNet.Region>

Description

The filter segments the inImage image in two phases. In the first step segmentation is done within tiles, while in the second step blobs are merged between consecutive tiles.

Errors

List of possible exceptions:

Error type Description
DomainError Directional method only supports single-channel images.
DomainError Not supported inImage pixel format in SegmentImage_Gray_Tiled. Supported formats: 1xUInt8, 3xUInt8.

Function Overrides

See also