numpy: unique list of colors in the image
numpy, python
Solution
You could do this:
set( tuple(v) for m2d in img for v in m2d )
Problem
I have an image `img`: ``` >>> img.shape (200, 200, 3) ``` On pixel (100, 100) I have a nice color: ``` >>> img[100,100] array([ 0.90980393, 0.27450982, 0.27450982], dtype=float32) ``` Now my question is: How many different colors are there in this image, and how do I enumerate them? My first idea was `numpy.unique()`, but somehow I am using this wrong.