Initializes and returns a pointer to the contour scanner. The scanner is used in cvFindNextContour to retrieve the rest of the contours.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static IntPtr cvStartFindContours(
	IntPtr image,
	IntPtr storage,
	int headerSize,
	RETR_TYPE mode,
	CHAIN_APPROX_METHOD method,
	Point offset
)
Public Shared Function cvStartFindContours ( _
	image As IntPtr, _
	storage As IntPtr, _
	headerSize As Integer, _
	mode As RETR_TYPE, _
	method As CHAIN_APPROX_METHOD, _
	offset As Point _
) As IntPtr
public:
static IntPtr cvStartFindContours(
	IntPtr image, 
	IntPtr storage, 
	int headerSize, 
	RETR_TYPE mode, 
	CHAIN_APPROX_METHOD method, 
	Point offset
)

Parameters

image
IntPtr
The 8-bit, single channel, binary source image
storage
IntPtr
Container of the retrieved contours
headerSize
Int32
Size of the sequence header, >=sizeof(CvChain) if method=CV_CHAIN_CODE, and >=sizeof(CvContour) otherwise
mode
RETR_TYPE
Retrieval mode
method
CHAIN_APPROX_METHOD
Approximation method (for all the modes, except CV_RETR_RUNS, which uses built-in approximation).
offset
Point
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

Pointer to the contour scaner

See Also