Smooth the image with a gaussian filter to remove noise.  Find gradients with max intensity (above a certain threshold). Apply non-maximum suppression to get rid of spurious response to edge detection (by finding the peaks in the gradients detected above the certain threshold, so it basically is the maximum ofContinue Reading

First when you just have 1D and want to find edges such as just a vertical or horizontal  scanning, it’s easy to take the second derivative times the kernel and times the image: ∂²/∂x² * h(kernel) *f(image) for horizontal or ∂²/∂y² * h(kernel) * f(image) for vertical. Then just find aContinue Reading