You are here: Start » AVL.NET » AVL.DistanceTransform
AVL.DistanceTransform
Computes an image in which the pixel values denote the estimated distances to the nearest bright pixel in the input image.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void DistanceTransform ( AvlNet.Image inImage, int inThreshold, float inStraightDistance, float inDiagonalDistance, float inMaxDistance, AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.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 | AvlNet.Image | Output distance image. |