image IO by plugin
Posted by
Lothar Leidner on
URL: http://imagej.273.s1.nabble.com/image-IO-by-plugin-tp3693091.html
Hello,
I've written two plugin classes for Sensicam (PCO) image IO (image
format .b16).
When I try to save an image which has been loaded by the ReadB16 plugin
the corresponding FileInfo object "forgets" some of its settings. Image
dimensions are kept. Byte order and header size settings are lost and
had to be redefined ("corrections" in the sourec excerpt). The only
manipulation I've performed with the image was the application of a
Gauss Blur filter. As at least the header size may change when using a
different camera this is not a good solution. How can I make sure that
these data are kept?
Any hints appreciated,
Lothar Leidner
ImagePlus imp = WindowManager.getCurrentImage();
...
FileInfo fi = imp.getFileInfo();
// Corrections
fi.intelByteOrder = true;
fi.offset = 384;
--
===============================================
Lothar Leidner
Institute of Theoretical and Physical Chemistry
University of Tuebingen
Auf der Morgenstelle 18
D-72076 Tübingen
E-Mail:
[hidden email]
Phone: +49-7071-29-72651