I tried using morphological operations: Erosion and Dilation using skimage module. However, the results seem interchanged for me. Dilation should add pixels to the boundarie