Finds the edges on the input image 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.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax
C# |
---|
public static void cvCanny( IntPtr image, IntPtr edges, double threshold1, double threshold2, int aperture_size ) |
Visual Basic (Declaration) |
---|
Public Shared Sub cvCanny ( _ image As IntPtr, _ edges As IntPtr, _ threshold1 As Double, _ threshold2 As Double, _ aperture_size As Integer _ ) |
Visual C++ |
---|
public: static void cvCanny( IntPtr image, IntPtr edges, double threshold1, double threshold2, int aperture_size ) |
Parameters
- image
- Type: System..::.IntPtr
Input image
- edges
- Type: System..::.IntPtr
Image to store the edges found by the function
- threshold1
- Type: System..::.Double
The first threshold
- threshold2
- Type: System..::.Double
The second threshold.
- aperture_size
- Type: System..::.Int32
Aperture parameter for Sobel operator