Monday, February 8, 2016

Big Endian vs Little Endian

Today I decided to add support for explicit big endian images to cornerstone.  Sometimes I run into images that don't render properly and wonder if this is due to a byte swap issue.  To help me remember what a byte swapping issue looks like, I figured I would take screen captures with and without the bytes swapped.  Here is the image displayed properly:



And with the bytes not properly swapped:





2 comments:

  1. That is interesting. But this problem could happen for OW data only or what ? For OB, the pixel data will not have any change (i think). Or is it happening only due to a completely different interpretation of imaging parameters when the endian-ness change.

    ReplyDelete