add dilation and erosion in grid map