I have this mask:
Let's say I would like to do bitwise_and with another image to fill in white, this works:
cv::bitwise_and(srcImage, mask, dstImage, [mask???]);
Now the resulting image gives something like this:
It's fine and dandy, but I would like to subtract black from the result. I saw that bitwise_and also accepts an 8-bit single-channel image, I'm not quite sure what it does. I suppose if it is 0, then it skips it, otherwise it ignores it.
So, how would I use the same mask to convert it as an 8-bit image and use it to remove the black result? I need the same image, but without a black border.
source share