morphological erosion of image of sin(x^2)