Login  Register

Re: Saving Raw 32-bit images with imageJ API

Posted by Michael Schmid on Jul 06, 2010; 3:49pm
URL: http://imagej.273.s1.nabble.com/Saving-Raw-32-bit-images-with-imageJ-API-tp3687689p3687694.html

Hi Bowden,

if you want to reduce the size, you can use the Averaging Reducer  
plugin that comes with the installation (under Plugins>Demos)
For saving as raw, the FileInfo won't be of much help.
In the Edit>Options>I/O Options, there is a checkbox "Save tiff & raw  
in Intel byte order" that switches between little endian and big endian.

You can translate most commands to the API by recording with the  
Macro Recorder and then converting "run" to "IJ.run".

Michael
________________________________________________________________

On 6 Jul 2010, at 17:02, Wise, Bowden (GE, Research) wrote:

> Hi,
> I want to use imageJ to scale some images to decimate them. The input
> images are 32-bit real, 2048x2048 images, with little endian. I can  
> read
> the images by setting the FileInfo parameters appropriately.  
> However, I
> cannot figure out how to save the image back out as 32-bit real,
> 512x512, little endian.
> I tried using FileInfo with appropriate settings and using the  
> FileSaver
> but it does not appear to be saving correctly. How do others save  
> their
> images as raw?
> If I save the same image out as a PNG file, the data is indeed scaled
> properly.
> Am I missing something?
> Thanks!
> Bowden