I have a numpy array of shape (height, width, 3) loaded from an image. I want to replace all black pixels [0, 0, 0] with a specific color [r, g, b]. Is there a numpy way to do this?
I have a numpy array of shape (height, width, 3) loaded from an image.
Share
1 Answer