You are here: Start » FIL.NET » Function Reference » Image » Image Features » FIL.DistanceTransform
FIL.DistanceTransform
Computes an image in which the pixel values denote the estimated distances to the nearest bright pixel in the input image.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void DistanceTransform ( FilNet.Image inImage, int inThreshold, float inStraightDistance, float inDiagonalDistance, float inMaxDistance, FilNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inThreshold | int | <0, +INF> | 128 | Minimal brightness above which pixels are called bright. Default value: 128. |
![]() | inStraightDistance | float | <0.0f, INF> | 1.0f | Distance between two neighboring in a row or a column pixels. Default value: 1.0f. |
![]() | inDiagonalDistance | float | <0.0f, INF> | 1.414f | Distance between two pixels connected by vertices. Default value: 1.414f. |
![]() | inMaxDistance | float | <0.0f, INF> | 255.0f | Maximum value of the calculated distance. Default value: 255.0f. |
![]() | outImage | FilNet.Image | Output distance image. |