Table of Contents

Class DrawContours

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that renders each set of contours in the sequence as an image.

public class DrawContours : Transform<Contours, IplImage>
Inheritance
DrawContours
Inherited Members

Properties

MaxLevel

Gets or sets the maximum level of the contour hierarchy to draw.

public int MaxLevel { get; set; }

Property Value

int

Thickness

Gets or sets the thickness of the lines with which the contours are drawn. If negative, the contour interiors are drawn.

public int Thickness { get; set; }

Property Value

int

Methods

Process(IObservable<Contours>)

Renders each set of contours in an observable sequence as a new image.

public override IObservable<IplImage> Process(IObservable<Contours> source)

Parameters

source IObservable<Contours>

The sequence of Contours objects to draw.

Returns

IObservable<IplImage>

A sequence of IplImage objects representing the result of rendering each set of contours as an image.

Process(IObservable<Contour>)

Renders each contour in an observable sequence as a new image.

public IObservable<IplImage> Process(IObservable<Contour> source)

Parameters

source IObservable<Contour>

The sequence of contour objects to draw.

Returns

IObservable<IplImage>

A sequence of IplImage objects representing the result of rendering each contour as an image.