1 | initial version |
You state that you do not want to use morphological operations. I am assuming this is to keep the original shape identical. If so, you could still consider using opening by reconstruction. Have a look over here: opening-by-reconstruction
I don't know how to do it in OpenCV though. Anyone?