MorphologyDistanceTransform Method

CVB.Net Documentation
This function calculates (and writes into the output image) the distance to the closest pixel in the source image with the value zero for all nonzero pixels in the input image. Distance is calculated approximatively using a set of principal distances, that is governed by the MaskSize parameter and the distance norm.

Namespace:  Stemmer.Cvb.Foundation
Assembly:  Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax

public static Image DistanceTransform(
	ImagePlane plane,
	FixedFilterSize maskSize,
	DistanceNorm norm
)

Parameters

plane
Type: Stemmer.CvbImagePlane
Image plane on which to calculate.
maskSize
Type: Stemmer.Cvb.FoundationFixedFilterSize
Mask size to use for the approximator (only 3x3 and 5x5 are acceptable)
norm
Type: Stemmer.Cvb.FoundationDistanceNorm
Distance calculation norm to be used

Return Value

Type: Image
The transformed image.
Exceptions

ExceptionCondition
ObjectDisposedExceptionIf the input plane has already been disposed
See Also

Reference