You are here: Start » AVL.NET » AVS.DistanceTransform Method

AVS.DistanceTransform Method

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

public static void DistanceTransform
(
	AvlNet.Image inImage,
	int inThreshold,
	float inStraightDistance,
	float inDiagonalDistance,
	float inMaxDistance,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inThresholdint<0, +INF>128Minimal brightness above which pixels are called bright. Default value: 128.
inStraightDistancefloat<0.0f, INF>1.0fDistance between two neighboring in a row or a column pixels. Default value: 1.0f.
inDiagonalDistancefloat<0.0f, INF>1.414fDistance between two pixels connected by vertices. Default value: 1.414f.
inMaxDistancefloat<0.0f, INF>255.0fMaximum value of the calculated distance. Default value: 255.0f.
outImageAvlNet.ImageOutput distance image.

See also