Often it is required to obtain only the visible portion of the mask for the object and thus removing the mask of distractors. How to achieve this?