Introduction - If you have any usage issues, please Google them yourself
There are four parts of Canny edge detection:
1. smoothing the image with Gauss filter; (image denoising)
2. calculate gradient amplitude and direction by first order partial derivative finite difference method (feature enhancement)
3. non maximum suppression of the gradient amplitude; (edge detection)
4. detect and connect edges with double threshold algorithm. (morphological treatment)