I created a binary image from an original image using Opencv threshold. Now, I want to map the created binary image with its original. This is part of image segmentations procedures in my project. How can I achieve this using opencv
how do you want to do this ?
what result do you expect ?
In the binary image, the foreground is white while the background is black. In the result image am expecting after the mapping, I want the foreground to be a colored (replacing the foreground in the binary image) image, while the background remains black.
that’s a simple
bitwise_and(img, img, result, mask);