morphological erosion of image of sin(x) x^2