How to operate area filtering ?
I use open and close operate to deal with the original image below,but I have not removed tiny black points. How to remove these small black points through area filtering and protect the edges of my ROI?