Image quantization techniques?

A post was split to a new topic: Compute volume in image