It's nice, but missing the most valuable (and simplest) take from computer vision: the Hough transforms. Let's take the circle Hough transform as it's one of the most enlightening ones! Say you are looking for a circle of a given diameter. After a binarization to make the edge stand out, make all the potential points "vote" for a circle center. The method is simple: using a matrix, you +1 all the points that are as f…
It's even simpler to make artificial neurons vote for a circle center.
You don't need the binarization step, and you can apply the method to other shapes as well.