http://www.emgu.com
Draws contour outlines in the image if thickness >=0 or fills area bounded by the contours if thickness<0.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static void cvDrawContours(
	IntPtr img,
	IntPtr contour,
	MCvScalar externalColor,
	MCvScalar holeColor,
	int maxLevel,
	int thickness,
	LINE_TYPE lineType,
	Point offset
)
Visual Basic
Public Shared Sub cvDrawContours ( 
	img As IntPtr,
	contour As IntPtr,
	externalColor As MCvScalar,
	holeColor As MCvScalar,
	maxLevel As Integer,
	thickness As Integer,
	lineType As LINE_TYPE,
	offset As Point
)
Visual C++
public:
static void cvDrawContours(
	IntPtr img, 
	IntPtr contour, 
	MCvScalar externalColor, 
	MCvScalar holeColor, 
	int maxLevel, 
	int thickness, 
	LINE_TYPE lineType, 
	Point offset
)
F#
static member cvDrawContours : 
        img : IntPtr * 
        contour : IntPtr * 
        externalColor : MCvScalar * 
        holeColor : MCvScalar * 
        maxLevel : int * 
        thickness : int * 
        lineType : LINE_TYPE * 
        offset : Point -> unit 

Parameters

img
Type: System..::..IntPtr
Image where the contours are to be drawn. Like in any other drawing function, the contours are clipped with the ROI
contour
Type: System..::..IntPtr
Pointer to the first contour
externalColor
Type: Emgu.CV.Structure..::..MCvScalar
Color of the external contours
holeColor
Type: Emgu.CV.Structure..::..MCvScalar
Color of internal contours
maxLevel
Type: System..::..Int32
Maximal level for drawn contours. If 0, only contour is drawn. If 1, the contour and all contours after it on the same level are drawn. If 2, all contours after and all contours one level below the contours are drawn, etc. If the value is negative, the function does not draw the contours following after contour but draws child contours of contour up to abs(maxLevel)-1 level.
thickness
Type: System..::..Int32
Thickness of lines the contours are drawn with. If it is negative the contour interiors are drawn
lineType
Type: Emgu.CV.CvEnum..::..LINE_TYPE
Type of the contour segments
offset
Type: System.Drawing..::..Point
Shift all the point coordinates by the specified value. It is useful in case if the contours retrived in some image ROI and then the ROI offset needs to be taken into account during the rendering.

See Also