• Smooth the image with a Gaussian filter.
•
• Compute gradient magnitude and
direction at each pixel of
the
smoothed image.
• Zero out
any pixel response £ the two neighboring pixels
on
either side of it, along the direction
of the gradient.
• Track
high-magnitude
contours.
•
• Keep only pixels along these contours, so weak little
segments go away.