Where is the edge? 
Solution:  smooth first
Look for peaks in