Canny Edge Detection

The Original Image

Steps

  1. Convert to grayscale
  2. Apply filter to minimize noise
  3. Calculate gradient

Grayscale

Gaussian blur

Standard deviation: Kernal Size:

Gradiant

Horizontal Gradient

Vertical Gradient

Gradient Direction

Raw Gradient Direction

Rounded Gradient Direction

Key:

Gradient

Edge Thinning

All images are from Wikipedia and are licensed under the Creative Commons or are in the public domain