http://www.emgu.com
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.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void Canny(
IInputArray image,
IOutputArray edges,
double threshold1,
double threshold2,
int apertureSize = 3,
bool l2Gradient = false
)
Public Shared Sub Canny (
image As IInputArray,
edges As IOutputArray,
threshold1 As Double,
threshold2 As Double,
Optional apertureSize As Integer = 3,
Optional l2Gradient As Boolean = false
)
public:
static void Canny(
IInputArray^ image,
IOutputArray^ edges,
double threshold1,
double threshold2,
int apertureSize = 3,
bool l2Gradient = false
)
static member Canny :
image : IInputArray *
edges : IOutputArray *
threshold1 : float *
threshold2 : float *
?apertureSize : int *
?l2Gradient : bool
(* Defaults:
let _apertureSize = defaultArg apertureSize 3
let _l2Gradient = defaultArg l2Gradient false
*)
-> unit
Parameters
- image
- Type: Emgu.CVIInputArray
Input image - edges
- Type: Emgu.CVIOutputArray
Image to store the edges found by the function - threshold1
- Type: SystemDouble
The first threshold - threshold2
- Type: SystemDouble
The second threshold. - apertureSize (Optional)
- Type: SystemInt32
Aperture parameter for Sobel operator - l2Gradient (Optional)
- Type: SystemBoolean
a flag, indicating whether a more accurate norm should be used to calculate the image gradient magnitude ( L2gradient=true ), or whether the default norm is enough ( L2gradient=false ).
See Also