That looks very interesting! Is there any way to include the Imagemagick .dll with your software? Despite trying several things on Imagemagicks website and several web searches I can't get the utility to run in Windows 10.
As a stop gap, I have compiled nearly every library that I can think it needs into the new zip. I am going to reconfigure ImageMagick so that most so this will not be required in future. But, for the meantime this should work.
Including all those .dll files did the trick. The exported file is something I'll have to figure out. Seems to have a whole bunch of RGB values. Many more entries than just 16 colors.
The colours were being mapped to the MD/Gen colourspace post quantization. Which opened a window of opportunity for microtones (relative to the colourspace) to be remapped after the initial cull.