CvInvokeCanny Method (IInputArray, IInputArray, IOutputArray, Double, Double, Boolean) |
http://www.emgu.com
Finds the edges on the input dx, dy 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.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static void Canny(
IInputArray dx,
IInputArray dy,
IOutputArray edges,
double threshold1,
double threshold2,
bool l2Gradient = false
)
Public Shared Sub Canny (
dx As IInputArray,
dy As IInputArray,
edges As IOutputArray,
threshold1 As Double,
threshold2 As Double,
Optional l2Gradient As Boolean = false
)
public:
static void Canny(
IInputArray^ dx,
IInputArray^ dy,
IOutputArray^ edges,
double threshold1,
double threshold2,
bool l2Gradient = false
)
static member Canny :
dx : IInputArray *
dy : IInputArray *
edges : IOutputArray *
threshold1 : float *
threshold2 : float *
?l2Gradient : bool
(* Defaults:
let _l2Gradient = defaultArg l2Gradient false
*)
-> unit
Parameters
- dx
- Type: Emgu.CVIInputArray
16-bit x derivative of input image - dy
- Type: Emgu.CVIInputArray
16-bit y derivative of 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. - 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