Class DistanceTransform
Represents an operator that calculates the distance to the closest zero pixel for all non-zero pixels of each image in the sequence.
public class DistanceTransform : Transform<IplImage, IplImage>
- Inheritance
-
DistanceTransform
- Inherited Members
Properties
DistanceType
Gets or sets a value specifying the type of distance function to use.
[TypeConverter(typeof(DistanceTypeConverter))]
public DistanceType DistanceType { get; set; }
Property Value
Methods
Process(IObservable<IplImage>)
Calculates the distance to the closest zero pixel for all non-zero pixels of each image in an observable sequence.
public override IObservable<IplImage> Process(IObservable<IplImage> source)
Parameters
source
IObservable<IplImage>The sequence of images for which to compute the distance transform.
Returns
- IObservable<IplImage>
A sequence of IplImage objects where each pixel contains the calculated distance from the original image element to the closest zero pixel.