There are many different algorithms for color quantization. Which one is best is dependent on the requirements of the system it is to be used in. The uniform quantization algorithms offer a quick and dirty means but can result in very poor quality depending on image characteristics. The non-uniform algorithms offer better consistent results at the cost of increased memory and time complexities.