Cv2Canny Method OpenCvSharp Class Library
Finds edges in an image using Canny algorithm.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void Canny(
	InputArray src,
	OutputArray edges,
	double threshold1,
	double threshold2,
	int apertureSize = 3,
	bool L2gradient = false
)

Parameters

src
Type: OpenCvSharp.CPlusPlusInputArray
Single-channel 8-bit input image
edges
Type: OpenCvSharp.CPlusPlusOutputArray
The output edge map. It will have the same size and the same type as image
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]
See Also

Reference