image - Color approximation -


let's suppose have regular rgb image. want approximate color of each individual pixel of our source image color out of small set of colors.

for example, tones of red should converted specific red out of set of colors, same goes green, blue, etc.

is there elegant way/algorithm achieve this?


Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -