SegmentImage_Gray_Tiled


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

Applications:Detection of objects of undefined shape, but characterized by uniform brightness and good contrast to the background.

Syntax

C++
C#
Python
 
def SegmentImage_Gray_Tiled(
	inImage: Image,
	inConnectivity: RegionConnectivity,
	/,
	*,
	inRoi: Region | None = None,
	inMergingMethod: BlobMergingMethod = BlobMergingMethod.Neighbor,
	inMaxDifference: int = 5,
	inHysteresis: int = 0,
	inTonalDrift: bool = True,
	inDirectional: bool = False,
	inMinArea: int = 20,
	inMaxArea: int | None = None
)
-> outBlobs: list[Region]

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Range of pixels to be processed
Input value inMergingMethod BlobMergingMethod BlobMergingMethod.Neighbor Defines a criterion by which two pixels can be merged into one blob
Input value inConnectivity RegionConnectivity
Input value inMaxDifference int 0 - 5 Maximal tonal difference that allows two pixels to be merged into one blob
Input value inHysteresis int 0 Change of MaxDifference between first and second iteration
Input value inTonalDrift bool True When 'True' blobs can be merged even if the illumination is not even
Input value inDirectional bool False When 'True' the filter can segment results of GradientDirAndPresenceImage
Input value inMinArea int 0 - 20 Minimal area of a blob that may be accepted
Input value inMaxArea int | None None Minimal area of a blob that may be accepted
Output value outBlobs list[Region]