Login  Register

Re: Save As Raw Data 16-bit as signed shorts

Posted by Simon Roussel on Feb 04, 2008; 4:40pm
URL: http://imagej.273.s1.nabble.com/Save-As-Raw-Data-16-bit-as-signed-shorts-tp3697283p3697284.html

Thanks a lot, it works perfectly.

To note, however (Other reply from Wayne), "The File>Save As>Raw Data
command saves signed 16-bit images (e.g.,File>Open Samples>CT) as signed
shorts".
This in not in the documentation.

Simon


>Hi Simon,
>
>as far as I know. such an option does not exist. There is a
>very simple workaround, however:
>
>(1) Make sure that raw pixel value 32768 corresponds to signed
>zero (you get it like this when opening signed 16-bit images)
>
>(2) Run Process>Math>XOR with 1000000000000000 binary
>(a one with 15 zeros).
>
>(3) Save the file as raw.
>
>Michael
>________________________________________________________________
>
>On 4 Feb 2008, at 10:31, Simon Roussel wrote:
>
>> Hi,
>> Is there any way or workaround to "Save As/Raw Data ..." 16-bit
>> images as
>> SIGNED shorts (in a macro) ?
>> Thanks in advance,
>> Simon
>=========================================================================