Finds edges in an image using Canny algorithm.
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic Mat Canny(
	double threshold1,
	double threshold2,
	int apertureSize = 3,
	bool L2gradient = false
)
Public Function Canny ( 
	threshold1 As Double,
	threshold2 As Double,
	Optional apertureSize As Integer = 3,
	Optional L2gradient As Boolean = false
) As Mat
public:
Mat^ Canny(
	double threshold1, 
	double threshold2, 
	int apertureSize = 3, 
	bool L2gradient = false
)
member Canny : 
        threshold1 : float * 
        threshold2 : float * 
        ?apertureSize : int * 
        ?L2gradient : bool 
(* Defaults:
        let _apertureSize = defaultArg apertureSize 3
        let _L2gradient = defaultArg L2gradient false
*)
-> Mat 
function Canny(threshold1, threshold2, apertureSize, L2gradient);
Parameters
- threshold1
- Type: SystemDouble
 The first threshold for the hysteresis procedure
- threshold2
- Type: SystemDouble
 The second threshold for the hysteresis procedure
- apertureSize (Optional)
- Type: SystemInt32
 Aperture size for the Sobel operator [By default this is ApertureSize.Size3]
- L2gradient (Optional)
- Type: SystemBoolean
 Indicates, whether the more accurate L2 norm should be used to compute the image gradient magnitude (true), or a faster default L1 norm is enough (false). [By default this is false]
Return Value
Type: 
MatThe output edge map. It will have the same size and the same type as image
 See Also
See Also