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


