Skip to content

NumPy implementation of "A Computational Approach to Edge Detection" (1986)

Notifications You must be signed in to change notification settings

oussamachaib/canny-edge-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

canny-edge-detection

plot
Personal implementation of Canny's operator

Python implementation (coded entirely in NumPy) of "A Computational Approach to Edge Detection" (1986) - Canny's operator for edge detection from digital images.

The algorithm takes a grayscale image as input, parameters pertaining to convolutional kernels (Gaussian standard deviation and width), and hysteresis thresholds. It then output a binary image corresponding to object edges in the image. They are defined as local maxima of gradient magnitudes in the image.

In the Jupyter Notebook, I demonstrate the performance of my implementation on pictures of four flower species.

While this was done for learning purposes, it might be useful for those trying to build an intuition about the method (and convolutional kernels/operations, in general).

Contents


canny_operator.py: Python implementation of the algorithm.

demo.ipynb: Demonstration.

About

NumPy implementation of "A Computational Approach to Edge Detection" (1986)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published