Login  Register

Re: Save RAW in integer instead of float?

Posted by Michael Schmid on Apr 20, 2007; 9:48am
URL: http://imagej.273.s1.nabble.com/Save-RAW-in-integer-instead-of-float-tp3699715p3699716.html

Hi Yang,

ImageJ has no image type consisting of 32-bit integer data, it
converts 32-bit ints to float when loading. Thus I fear that
you would have to write your own plugin for writing 32-bit ints.

If you can do with 16-bit ints (data range 0...65535), uncheck
"scale conversions" in Edit>Options>conversions and transform
to 16-bit before saving.

Michael
________________________________________________________________

On 19 Apr 2007, at 19:16, Yang Xia wrote:

> Hi,
>
> I open a raw image and then save it as raw, using File>Save As>Raw  
> Data. The raw images I opened have the 16/32 bit integer format,  
> but the raw images I saved are 32bit float.
>
> Is it possible to save the raw images in the integer/long-integer  
> format? I do not want any 'automatic' scaling or conversion, and  
> need to preserve the pixel values.
>
> I run ImageJ 1.37v on Powerbook G4.
>
> Thanks in advance.
>
> Yang
> --