[Insight-users] Bug in itkVOLImageIO.cxx
Miller, James V (Research)
millerjv@crd.ge.com
Thu, 7 Nov 2002 16:16:31 -0500
ITK has byteswapping code that does the right thing based
on the architecture etc. Looks like the VOLImageIO code
however is not using it. Thanks.
Jim
> -----Original Message-----
> From: Gert Wollny [mailto:wollny@cns.mpg.de]
> Sent: Thursday, November 07, 2002 7:09 AM
> To: insight-users@public.kitware.com
> Subject: [Insight-users] Bug in itkVOLImageIO.cxx
>
>
> Hello all,
>
> when I was reading over the code to implement my own data
> reader class i
> saw the following:
>
> in void VOLImageIO::ReadData the define
>
> #ifndef _WIN32
> // reverse byte order for big-endian machines, which i
> guess would be
> // not win32?
> [...]
> #endif
>
> is a bit short-sighted, since endianess is not a matter of
> the OS but of
> the hardware.
>
> With unix, autoconf provides the check AC_C_BIGENDIAN, which in turn
> defines the macro WORDS_BIGENDIAN. However, I do not know how this
> translates to cmake. Therefor I can not offer a simple fix.
>
> Best wishes
>
> Gert
>
>
>
>
>
>
> --
>
> | GPG public key on request
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>