Cleaning ImageMorphology boundary data

Can you please share an image with the expected result? You can draw the result with any drawing tool and paste it here.