Wonderful. I am envisioning a live pair of images, palette and picture, so manipulations of the palette altered the picture.
The net result would be a live image like you suggest, but one with much less detail. Still very interesting though.
In other words, you can maintain the detail in RGB space (as this author has) while reorganizing things in location space by their k-means clusters.