I am getting some flickers (sharp lines) along with the segmented blob. How can I reduce them to make the boundary smoother? For more clarity, I have attached the image with input and expected output.
Note that, it is a binary image and I have no raw image (gray). The input is binary.
I have tried Gaussian blur but the method makes my shape smaller.
mask = ndimage.filters.gaussian_filter(mask, 0.5, order=0, output=None, mode='reflect', cval=0.0, truncate=5.0)


