I have a stack of RGB images in a 4d numpy array, so the shape is (n_images, height, width, n_channels) where n_channels is 3. How can I get a list of unique RGB values across all the images.
I found this question numpy: unique list of colors in the image for a single image but want to apply it to my stack of images without a for-loop.