I am new to numpy and I want to replace specefic elements in a 3D numpy array. My 3D numpy array represents an image. The shape of the array is: (1080, 1920, 3). The number 3 represents RGB of each pixel in the image.
All I want to know is how to change all the elements that are equal to [0,0,0] into [255,255,255] Which means i want all black pixels in the image to be white.. How can i do it? Thanks!