CvArrFindContours Method (CvMemStorage, CvSeqCvPoint, Int32, ContourRetrieval, ContourChain, CvPoint) OpenCvSharp Class Library
Retrieves contours from the binary image and returns the number of retrieved contours.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public int FindContours(
	CvMemStorage storage,
	out CvSeq<CvPoint> firstContour,
	int headerSize,
	ContourRetrieval mode,
	ContourChain method,
	CvPoint offset
)

Parameters

storage
Type: OpenCvSharpCvMemStorage
Container of the retrieved contours.
firstContour
Type: OpenCvSharpCvSeqCvPoint
Output parameter, will contain the pointer to the first outer contour.
headerSize
Type: SystemInt32
Size of the sequence header, >=sizeof(CvChain) if method=CV_CHAIN_CODE, and >=sizeof(CvContour) otherwise.
mode
Type: OpenCvSharpContourRetrieval
Retrieval mode.
method
Type: OpenCvSharpContourChain
Approximation method.
offset
Type: OpenCvSharpCvPoint
Offset, by which every contour point is shifted. This is useful if the contours are extracted from the image ROI and then they should be analyzed in the whole image context.

Return Value

Type: Int32
The number of retrieved contours.
See Also

Reference