I am implementing a machine learning algorithm in matlab, and was doing some reading up on the color range of the human eye, and was informed that the human eye can only perceive about 17,000 colors, where as the images I have about 256^3 colours. What is the best way to quantization my images, in matlab or otherwise.
Also, as a side question in terms of machine learning, which one is better to use bitmap or jpeg?
I am implementing a machine learning algorithm in matlab, and was doing some reading
Share
JPEG is a lossy format. You should not use it if your input data is not already JPEG. Even if so, you should not re-compress your data to avoid introduction of further artifacts.
A very simple, yet popular method for color quantization is the k-means algorithm. You can find it in Matlab. This is a good starting point. However, there exist a broad range of paradigms and methods in recent research.