You are here: Start » FIL.NET » Function Reference » Computer Vision » Image Segmentation » FIL.SegmentImage_Gray_Tiled
Segments an image into blobs examining differences between pixels values, first pass is tiled.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void SegmentImage_Gray_Tiled ( FilNet.Image inImage, FilNet.BlobMergingMethod inMergingMethod, FilNet.RegionConnectivity inConnectivity, int inMaxDifference, int inHysteresis, bool inTonalDrift, bool inDirectional, int inMinArea, IList<FilNet.Region> outBlobs )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inMergingMethod | FilNet.BlobMergingMethod | Neighbor | Defines a criterion by which two pixels can be merged into one blob. Default value: Neighbor. | |
![]() | inConnectivity | FilNet.RegionConnectivity | |||
![]() | inMaxDifference | int | <0, INF> | 5 | Maximal tonal difference that allows two pixels to be merged into one blob. Default value: 5. |
![]() | inHysteresis | int | Change of MaxDifference between first and second iteration. | ||
![]() | inTonalDrift | bool | True | When 'True' blobs can be merged even if the illumination is not even. Default value: True. | |
![]() | inDirectional | bool | When 'True' the filter can segment results of GradientDirAndPresenceImage. | ||
![]() | inMinArea | int | <0, INF> | 20 | Minimal area of a blob that may be accepted. Default value: 20. |
![]() | outBlobs | System.Collections.Generic.IList<FilNet.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. |