I have a black area around my image and i want to create a mask using OpenCv C++ that select just this black area so that i can paint it later. how Can i do that with out affect the image it self.
I try to converted to grayscale image and then using threshold to converted it to binary, but its affect my image since its contain black pixels.

Thanks in advance,
↧