[Insight-developers] Meta byte swapping problems for doubles

Lorensen, William E (Research) lorensen@crd.ge.com
Thu, 8 May 2003 11:43:33 -0400


Steven,
 I have fixed the byte swapping problems in the metaImage lib for 4 byte
words. However, the 8 byte word is a bit more challenging. I suggest looking
at the itkByteSwap code and use the same algorithm. I don't think you can
use the shift/mask technique that is used for the 4 byte word since there is
not an integer available on all platforms that is 64 bits long.

I'd rather not do the API change myself.

Bill