Mask and image

asked 2019-08-18 06:22:44 -0500

SylvainArd gravatar image

Hi all ! I have an image in true colors and a mask black and white, I want to make an image which white pixels of the mask become red in the result image and the black pixels of the mask become true colors pixels of the true colors image in the result image. I want in in OPENCV/Python please. Thank you Bye

edit retag flag offensive close merge delete

Comments

1

use copyTo with a red image (opencv4)

LBerger gravatar imageLBerger ( 2019-08-18 16:05:42 -0500 )edit
1

or apply a logical AND operator between the mask and a red image

StevenPuttemans gravatar imageStevenPuttemans ( 2019-08-19 08:57:28 -0500 )edit
1

ok thank you !

SylvainArd gravatar imageSylvainArd ( 2019-08-19 11:09:19 -0500 )edit