MatCanny 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 Mat Canny(
	double threshold1,
	double threshold2,
	int apertureSize = 3,
	bool L2gradient = false
)

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: Mat
The output edge map. It will have the same size and the same type as image
See Also

Reference