Erosion and Optimal Transport