Class ConvexityDefects
Represents an operator that finds the convexity defects of each contour in the sequence.
public class ConvexityDefects : Transform<Seq, ContourConvexity>
- Inheritance
-
ConvexityDefects
- Inherited Members
Methods
Process(IObservable<ConnectedComponent>)
Finds the convexity defects of each ConnectedComponent in an observable sequence.
public IObservable<ContourConvexity> Process(IObservable<ConnectedComponent> source)
Parameters
source
IObservable<ConnectedComponent>The sequence of ConnectedComponent objects containing the contours for which to find the convexity defects.
Returns
- IObservable<ContourConvexity>
A sequence of ContourConvexity objects representing the deviations between each point in the contour and its convex hull.
Process(IObservable<Seq>)
Finds the convexity defects of each contour in an observable sequence.
public override IObservable<ContourConvexity> Process(IObservable<Seq> source)
Parameters
source
IObservable<Seq>The sequence of contours for which to find the convexity defects.
Returns
- IObservable<ContourConvexity>
A sequence of ContourConvexity objects representing the deviations between each point in the contour and its convex hull.