CvArrFindContours Method (CvMemStorage, CvSeqCvPoint, Int32, ContourRetrieval) 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
)

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.

Return Value

Type: Int32
The number of retrieved contours.
See Also

Reference