out[global_mask>0] = blur[global_mask>0]
out: original image
global_mask: black and white image where all the skin is white and other parts are black
blur: blurred copy of the original image.
Can someone please guide me on this, I have tried creating an ROI on the original image and tried placing the black and white image over it. In my mind the path to achieve this is
- Make all the black pixels in the black and white image transparent
- Replace the white pixels in the black and white image with the pixels of blurred image at same position.
- Place the new image over the original image.