How to apply color quantization to an image

Nice, @quark!

This could also be done with the ImageJ implementation of Median Cut.

The nice thing about that implementation is it is based on java.awt.Image, so it takes a pixels[] array – no 2D conversion class required.

2 Likes