Save RAW in integer instead of float?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Save RAW in integer instead of float?

Yang Xia
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
--
Reply | Threaded
Open this post in threaded view
|

Re: Save RAW in integer instead of float?

Michael Schmid
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
> --