I have an image that I am trying to process:
I want two seamingly contradictory effects:
I want to remove "holes" inside "the blob". That is I want all pixels inside the blob to be solid red.
I want to move the boundary of the blob inwards.
From what I gather the morphological operation dilatation would do 1. and erosion would do 2?
But dilatation and erosion counteract each other?
How would you suggest I go about to achieve the desired result?