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



