find edges in image of sin(x) x