Finds the edges on the input image and marks them in the output image edges using the Canny algorithm. The smallest of threshold1 and threshold2 is used for edge linking, the largest - to find initial segments of strong edges.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void cvCanny(
	IntPtr image,
	IntPtr edges,
	double threshold1,
	double threshold2,
	int apertureSize
)
Public Shared Sub cvCanny ( _
	image As IntPtr, _
	edges As IntPtr, _
	threshold1 As Double, _
	threshold2 As Double, _
	apertureSize As Integer _
)
public:
static void cvCanny(
	IntPtr image, 
	IntPtr edges, 
	double threshold1, 
	double threshold2, 
	int apertureSize
)

Parameters

image
IntPtr
Input image
edges
IntPtr
Image to store the edges found by the function
threshold1
Double
The first threshold
threshold2
Double
The second threshold.
apertureSize
Int32
Aperture parameter for Sobel operator

See Also