added a closing operation to the masker to avoid 'gaps' in the mask

Adding a mathematical closing operation after the mathematical opening to avoid spurious gaps due to the thresholding observed in some images.

At this moment the `closing` operator must be smaller than or equal to the  ̀opening` operator, any comments or suggestions are welcome.