1This folder has some scripts I've written that use the output of dominant colours to do interesting things.
5This "slices" an image based on its dominant colours: each slice contains then pixels of the original image which are closest to one of the dominant colours.
8$ python3 dominant_slices.py lighthouse.jpg --max-colours
=5
17 <img src="lighthouse.e8e3d7.png">
21 <img src="lighthouse.838882.png">
25 <img src="lighthouse.4576bb.png">
29 <img src="lighthouse.292019.png">
33 <img src="lighthouse.c53b4e.png">