[Insight-users] Endian ness further questions

Radhika Sivaramakrishna radhika.sivaramakrishna at synarc.com
Wed, 14 Jan 2004 11:26:35 -0800


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3DAD4.531CD028
Content-Type: text/plain

Hi Luis,

I read in a DICOM series that had unsigned short data and I wrote it back in
Analyze format. I find I get scrambled data. 
However, when I write it back as raw, and view it with ImageJ where I can
set the Endian type of the data, I find the data looks okay. Even the
scrambled data which I got from the Analyze format, I can save as raw in
ImageJ and see that that is correct when I am able to set the Endianness of
the file. However, I don't want to save my results in raw if I can avoid it.

I tried playing with SetByteToOrderToSmallEndian etc but it did not change
things.

So basically my question is, with Analyze format, is there a way to set the
Endianness of the output file? Since Analyze format is the most convenient
for me at this point, I would prefer to use this format.

Thanks
Radhika

                                                     
-----------------------------------------------------  
Confidentiality Notice. 
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. If you are the intended recipient, please be
advised that the content of this message is subject to access, review and
disclosure by the sender's Email System Administrator.

------_=_NextPart_001_01C3DAD4.531CD028
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2656.87">
<TITLE>Endian ness further questions</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi Luis,</FONT>
</P>

<P><FONT SIZE=3D2>I read in a DICOM series that had unsigned short data =
and I wrote it back in Analyze format. I find I get scrambled data. =
</FONT></P>

<P><FONT SIZE=3D2>However, when I write it back as raw, and view it =
with ImageJ where I can set the Endian type of the data, I find the =
data looks okay. Even the scrambled data which I got from the Analyze =
format, I can save as raw in ImageJ and see that that is correct when I =
am able to set the Endianness of the file. However, I don't want to =
save my results in raw if I can avoid it. </FONT></P>

<P><FONT SIZE=3D2>I tried playing with SetByteToOrderToSmallEndian etc =
but it did not change things.</FONT>
</P>

<P><FONT SIZE=3D2>So basically my question is, with Analyze format, is =
there a way to set the Endianness of the output file? Since Analyze =
format is the most convenient for me at this point, I would prefer to =
use this format.</FONT></P>

<P><FONT SIZE=3D2>Thanks</FONT>
<BR><FONT SIZE=3D2>Radhika</FONT>
</P>

<P><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT =
SIZE=3D2>-----------------------------------------------------&nbsp; =
</FONT>
<BR><FONT SIZE=3D2>Confidentiality Notice. </FONT>
<BR><FONT SIZE=3D2>This email message is for the sole use of the =
intended recipient(s) and may contain confidential and privileged =
information. Any unauthorized review, use, disclosure or distribution =
is prohibited. If you are not the intended recipient, please contact =
the sender by reply email and destroy all copies of the original =
message. If you are the intended recipient, please be advised that the =
content of this message is subject to access, review and disclosure by =
the sender's Email System Administrator.</FONT></P>

</BODY>
</HTML>
------_=_NextPart_001_01C3DAD4.531CD028--