Erosion and dilation of edges in dimensional X-ray computed tomography images