Class ApproximatePolygon
Represents an operator that approximates each polygonal curve in the sequence with the specified precision.
public class ApproximatePolygon : Transform<Contours, Contours>
- Inheritance
-
ApproximatePolygon
- Inherited Members
Properties
Eps
Gets or sets the desired approximation accuracy.
public double Eps { get; set; }
Property Value
Method
Gets or sets a value specifying the polygon approximation method.
public PolygonApproximation Method { get; set; }
Property Value
Recursive
Gets or sets a value specifying whether approximation should proceed for all hierarchical levels.
public bool Recursive { get; set; }
Property Value
Methods
Process(IObservable<Contours>)
Approximates each polygonal curve in an observable sequence with the specified precision.
public override IObservable<Contours> Process(IObservable<Contours> source)
Parameters
source
IObservable<Contours>A sequence of polygonal curves to approximate.
Returns
- IObservable<Contours>
A sequence of the approximated polygonal curves.