Image edge detection
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE6ZdkOhqTNOHIRyEdEoAuGpW2_-d4Y8toGuoygSumdPdKkpxEwbAIrBb2bqp__X2JUPz1TwRFPKgll4ICbW_H5gqr5HdKnWlurRYEii10AhmKp_knsYTWljZNkZCVEzJJL01DZxluVA5Q/s1600/edge_detection.jpg)
Edge detection is a fundamental tool in image processing, machine vision and computer vision. In this post we're going to take a look at a very basic edge detection algorithm, which takes into account a predefined tolerance value that can be adjusted to detect arbitrary fine details in a given image. # Algorithm The algorithm is extremely simple; it begins by iterating over each pixel in the image, then, for each pixel, it checks its neighbors. +-------+-------+-------+ | | | | | A | B | C | | | | | +-------+-------+-------+ | | | | | D | | E | | | | | +-------+-------+-------+ | ...