Table of Contents

Class DrawContours

Namespace
Bonsai.Vision.Drawing
Assembly
Bonsai.Vision.dll

Represents an operator that specifies drawing contour outlines or filled interiors in an image.

public class DrawContours : CanvasElement
Inheritance
DrawContours
Inherited Members

Properties

Contour

Gets or sets the first contour to draw.

public Seq Contour { get; set; }

Property Value

Seq

ExternalColor

Gets or sets the color of the external contours.

[Range(0, 255)]
[Precision(0, 1)]
[TypeConverter(typeof(BgraScalarConverter))]
public Scalar ExternalColor { get; set; }

Property Value

Scalar

HoleColor

Gets or sets the color of the internal holes.

[Range(0, 255)]
[Precision(0, 1)]
[TypeConverter(typeof(BgraScalarConverter))]
public Scalar HoleColor { get; set; }

Property Value

Scalar

LineType

Gets or sets a value specifying the line drawing algorithm used to draw the contour boundaries.

public LineFlags LineType { get; set; }

Property Value

LineFlags

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 contour lines, if positive. Otherwise, the contour interiors will be drawn.

public int Thickness { get; set; }

Property Value

int

Methods

GetRenderer()

Returns the contour drawing operation.

protected override Action<IplImage> GetRenderer()

Returns

Action<IplImage>

The Action<T> object that will be invoked to apply the drawing operation to the canvas bitmap during rendering.