First time here? Check out the FAQ!
answered 2016-08-22 17:04:15 -0600
img_rgb is a numpy ndarray.
To find indices of the mask
indices = np.where(mask==255)
To fill pixels at these indices with red color
img_rgb[indices[0], indices[1], :] = [0, 0, 255]
img_rgb now has red pixels