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