Click or drag to resize

Cv2Canny Method (InputArray, InputArray, OutputArray, Double, Double, Boolean)

Finds edges in an image using the Canny algorithm with custom image gradient.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void Canny(
	InputArray dx,
	InputArray dy,
	OutputArray edges,
	double threshold1,
	double threshold2,
	bool L2gradient = false
)

Parameters

dx
Type: OpenCvSharpInputArray
16-bit x derivative of input image (CV_16SC1 or CV_16SC3).
dy
Type: OpenCvSharpInputArray
16-bit y derivative of input image (same type as dx).
edges
Type: OpenCvSharpOutputArray
output edge map; single channels 8-bit image, which has the same size as image.
threshold1
Type: SystemDouble
first threshold for the hysteresis procedure.
threshold2
Type: SystemDouble
second threshold for the hysteresis procedure.
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