Table of Contents

Class ApproximatePolygon

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

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

double

Method

Gets or sets a value specifying the polygon approximation method.

public PolygonApproximation Method { get; set; }

Property Value

PolygonApproximation

Recursive

Gets or sets a value specifying whether approximation should proceed for all hierarchical levels.

public bool Recursive { get; set; }

Property Value

bool

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.