find edges in image of sin(x^2)