[Insight-users] Byte Order Swapping??

Luis Ibanez luis.ibanez@kitware.com
Sun, 04 May 2003 18:15:14 -0400


Hi Neha,

1) ITK does not have any endianess default.

2) The DiscreteGaussianFilter does not alter
    the endianess of an image.

3) Endianess is a property of the platform you
    are using.

4) ITK image filters are unaware and independent
    of the endianess used by your platform.

The only classes in ITK that deal with endianess
are the ImageIO classes. Among them you seem to
be using the RawImageIO class.

Please *DON'T* use raw images. Raw images are
dangerous due to their lack of fundamental
information about the image content.

If you have raw files, please write MetaImage
headers for them and use the standard ITK
ImageFileReader and ImageFileWriter to read
and write images. This is illustrated in almost
all the examples in

            Insight/Examples

and their associated descriptions in the
software guide:

    http://www.itk.org/ItkSoftwareGuide.pdf


Regards,


   Luis



--------------------------


Neha D wrote:
> Hi Luis,
>  
> I am using "Discrete Gaussian Image Filter" on my raw image which has 
> byte order - Big Endian. For this images, when i use filter, this filter 
> swaps the byte order ( message : ElementbyteOrder Swapped).
> But I remember somebody saying "ITK's Default byte Order is Big Endian".
>  
> Why does this filter swaps the byte order ?
>  
> Thanks,
> Neha
>