Canny edge detection algorithm steps:
- Gaussian filter(denoise).
- Calculate intensity and directions of image gradient.
- Non-max suppression of the gradient according to gradient direction.
- Double threshold detection get weak edges and strong edges.
- Tracking edges by hysteresis.