morphological erosion of image of x sin(2 x)