Say, you have a labeled image, like this: And say, some of those labeled regions are not objects of interest. You want to erase those labels from the image. This is a really simple concept, and very generic. It should be easy to do. importdiplibasdiplab=dip …