Re: Saving Raw 32-bit images with imageJ API
Posted by
Unruh, Jay-2 on
Jul 06, 2010; 10:34pm
URL: http://imagej.273.s1.nabble.com/Saving-Raw-32-bit-images-with-imageJ-API-tp3687689p3687693.html
Bowden,
The great thing about raw files is that you don't need the ImageJ API--just write the data stream directly to file. If you look at the ImageJ source code for the ImageWriter class and method writeFloatImage(OutputStream out,float[] pixels), you will see how it is done for little and big endian. Here is the link to the source page I am talking about:
http://rsb.info.nih.gov/ij/developer/source/ij/io/ImageWriter.java.htmlJay Unruh
Stowers Institute for Medical Research
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Bowden Wise
Sent: Tuesday, July 06, 2010 5:07 PM
To:
[hidden email]
Subject: Re: Saving Raw 32-bit images with imageJ API
Michael,
Thanks for your reply. I am using the Java API for imageJ which is why I referred to the classes FileInfo and FileSaver. I am looking to use imageJ to manipulate images offline (no user interface). I can load, resize the image using the Java API but just can't save it back out. So are you saying there is no way to save a raw image using the Java API?
Thanks!
Bowden