Description: 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
To Search:
File list (Check if you may need any files):
canny边缘检测\testEdge2.dsw
.............\testEdge2.ncb
.............\testEdge2.plg
.............\TestEdege.c
.............\testEdge2.dsp
.............\fruits.jpg
.............\Debug\vc60.idb
.............\.....\vc60.pdb
.............\.....\TestEdge.obj
.............\.....\testEdge2.exe
.............\.....\testEdge2.pdb
.............\.....\TestEdge.obj.enc
.............\.....\testEdge2.ilk
.............\.....\testEdge2.pch
.............\TestEdge.c
.............\testEdge2.opt
.............\Debug
canny边缘检测