Using K-means clustering it is possible to reduce the amount of colors in an image. What are the purposes of using this method for extracting colors from an image?
Asked
Active
Viewed 64 times
1
-
one purpose is palette generation. please review [ask] and present your research. – Christoph Rackwitz Jan 08 '23 at 21:47
-
Note that there are other methods much more suitable than k-means for finding a reduced palette. – Cris Luengo Jul 14 '23 at 17:00
1 Answers
1
There are some use cases:
- Palette Generation
The centroids becomes a color in the palette. - Segmentation
If you add the location of the pixels as a feature you can use the K-Means as segmentation tool as done in Super Pixels (See Rectangle Segments of Image (Rectangle Super Pixels) per Pixel and Locate Non Homogenous Areas in an Image).
Royi
- 19,608
- 4
- 197
- 238