How can I reduce the number of distinct colors in images using OpenCV (+ C++) the fastest way possible? I don\'t want the complete code. I\'m already doing it using kmeans b
Fast pairwise nearest neighbor based algorithm with 8 colors
High quality and fast
Efficient, Edge-Aware, Combined Color Quantization and Dithering with 8 colors
Higher quality for 32 or less colors but slower
Spatial color quantization with 8 colors
Higher quality for 32 or less colors but the slowest
Sample c++ code
For the speed, it might be depending on GPU parallel programming C/C++.