morphological erosion of image of tan(x) x