Erosion and Dilation parallelized