Hello! I need a function to compute the erosion of a binary image by a structuring element. I need the structuring element to be a ball of a given radius. As far as I know the libraries adehabitat and spatstat include functions of mathematical morphology but I couldn't find a function which computes the erosion by a ball. Any idea? Thanks!