Introduction - If you have any usage issues, please Google them yourself
The optimal type stair edge detection algorithm (canny edge detection)
1 Canny edge detection principle
(1) the image edge detection must meet two conditions: one can effectively reduce the noise, 2 must try to accurately determine edge position.
(2) according to the signal-to-noise ratio and the product localization estimate, get optimal approximation operator. This is the Canny edge detection operators.
(3) similar to Marr (LoG) edge detection method, also belongs to the first derivative method for smooth after.
2 Canny edge detection algorithm:
Step1: using gauss filter smooth image,
Step2: a partial derivatives with finite difference to calculate gradient value and direction,
Step3: a gradient of maximum inhibition,
Step4: double threshold algorithm of edge detection and connection.
Step1: gaussian smooth functions