Home

Canny Edge Detector

state-of-the-art parameter tuning

Original
Result
source image

Parameters

Thresholds

The thesholds of the hysteresis process in the Canny algorith. The larger of the two is for finding strong edges, and the smaller one is for edge linkage.

Threshold1

Threshold2

Aperture Size (optional)

Aperture size of the Sobel() operator. The default value is 3, and only value [ 3, 5, 7 ] are allowed.

L2 Gradient (optional)

Whether or not to use the more accurate L2 norm (slower) to calculate gradient. The default value is False.

Code

Reference


*Disclaimer*: This site is not in any way associated with the OpenCV organization. Visit OpenCV.org for an updated documentation for the latest functions.

This site is built on the sheer annoyance and repetitive frustration the author experienced while tuning parameters on OpenCV. It is casually maintained in my spare time. You can DM me on Github for any feature suggestions.

© 2020~ Yu-Kai Wang

@Github