find edges in image of tan(x) x