Can someone help me with an algorithm or some related materials to achieve this ? It’s pretty urgent for me cause it’s my graduation thesis. Thank u so much !
a combination of Blur and Binarize should do the trick. I do not have access to the original image, i.e. the mask, so there is a bit of preprocessing to extract your black region.
If your image is saved in a variable img, then this works: