I'm trying to write an ImageJ macro which performs color quantization down to only 10 colors on directories of many images and saves each LUT as text. I can accomplish this now by converting the image type from RGB to 8-bit color (10 colors), but I would prefer the output I get from "Color Inspector 3D" plugin (
http://rsb.info.nih.gov/ij/plugins/color-inspector.html) with the "median cut" or "wu quant" filters set to 10.
Unfortunately, I don't know script anything that happens inside the "Color Inspector 3D" window such as duplicating the ouput or popping up and saving the LUT.
- Are there macro commands to access menu options within a plugin window like Color Inspector 3D?
- Are there any other ways to call functions within it directly?
- Would you recommend an alternative way of batch-creating "wu quantization" or similar style LUTs?
Thanks for your time,
Jeremy