This is an implementation of the edge detection algorithm in the book Artificial Intelligence: A Modern Approach (third edition). The algorithm detects edges in an image by first converting it to black and white, then smoothing it by applying a Gaussian filter, and finally detecting edge pixels as those pixels whose gradient (change in intensity from a neighbor) is a local maximum (larger than any surrounding pixel's change) and whose gradient is above some user-specified threshold.
tansey / edge_detection Goto Github PK
View Code? Open in Web Editor NEWAn edge detection algorithm implemented in python and based on Section 24.2 of AIMA v3