morphological erosion of image of x sin(x)