As API: write GIF with lookup table
Posted by
Leonard Sitongia on
Oct 06, 2010; 7:51pm
URL: http://imagej.273.s1.nabble.com/As-API-write-GIF-with-lookup-table-tp3686710.html
I'm using ImageJ as an API in my own Java software. It's a GUI-less program for use in batch jobs. I can read a FITS image in, resize, annotate with text and write it as a PNG. What I can't do is:
Write as a GIF:
The GIFWriter operates in GUI mode on an open image. Can I use this from my GUI-less program? Or another GIF Writer from someone?
Use a Lookup Table:
I can't figure out how to read one of the LUTs distributed with ImageJ and apply it to an image.
Is a LUT turned into a LookupTable and applied to an ImagePlus? I see a method to get a LUT from an ImagePlus, but not to set a LUT.
Is a LUT applied when writing a specific file format? Read the Lookup Table, convert it to a format specific to a particular image file and set it in a Writer?
Thanks for your help.
==Leonard E. Sitongia
High Altitude Observatory
National Center for Atmospheric Research
P.O. Box 3000 Boulder CO 80307 USA
[hidden email] voice: (303)497-2454 fax: (303)497-1589