How to remove the element attached to the image border?
Hello, now i'm trying to delete the elements attached to the image border by using open-cv (in python). In the Matlab, we can use the clearborder to delete these elements, but in this time, i am supposed to use python and its library. I suppose that i should detect the elements which i want to delete and after it, i might use the floodfill to delete the complement.
However, i don't know how i can detect the elements attached to the image border.
If you have a time, could you give me the advice?