how can i set the values of my matrix to a certain rgb value given a mask ?
image_a; %(640x480x3) uint8
mask; %(640x480x1) logical mat
image_a(mask) = cv::RGB(255,200,0);
logical indexing
image_a; %(640x480x3) uint8
mask; %(640x480x1) logical mat
image_a(mask) = cv::RGB(255,200,0);
Best Answer