ImageTraceSimplifier Class

ImageTraceSimplifier class

The ImageTraceSimplifier class is responsible reducing the number of points in a curve that is approximated by a series of the trace points.

public class ImageTraceSimplifier : IImageTraceSimplifier

Constructors

NameDescription
ImageTraceSimplifier()Initializes a new instance of the ImageTraceSimplifier class.
ImageTraceSimplifier(float)Initializes a new instance of the ImageTraceSimplifier class.

Properties

NameDescription
Tolerance { get; set; }The value of the tolerance determines the maximum error tolerance allowed for an point to be eliminated from trace. It must be in the range from 0 to 4. Any higher or lower values will be aligned with the minimum and maximum values of this range, accordingly. The default value is 0.3.

Methods

NameDescription
Simplify(IEnumerable<PointF>)Reduces the number of points it the list of the trace points.

See Also