Yes. You are correct that images represented by one byte per voxel do
not have any endian-ness problems, so there should not be any
byte-swapping issues with 8 bit data.
There is everything you probably wanted to know on endian-ness at
http://en.wikipedia.org/wiki/Big-endian .
Best regards,
-John
On 9 December 2010 19:23, pouria mojabi <[log in to unmask]> wrote:
> Thank you very much John for your kind reply.
>
> The problem we are facing in our lab is that, we have an in-house image
> viewing software that behaves unexpectedly when given BE images. I am trying
> to narrow this down and create images in UInt8 to eliminate possible byte
> swapping confusion.
> Am i correct in assuming that Uint8 images, bits are written in the same
> order no matter what the architecture(BE or LE) is? any pointers to this
> concept is highly appreciated
>
> Thank you again
> P
>
> On 12/9/2010 12:45 AM, John Ashburner wrote:
>
> Type the following for some hints:
>
> help nifti/Contents
>
> Where it says dat.dtype, you can say either "BE" or "LE".
>
> Best regards,
> -John
>
> On 9 December 2010 00:31, pouria mojabi <[log in to unmask]> wrote:
>
> Dear Experts,
>
> Thank you in advance for the time of reading this.
>
> I simply need to create two UInt8 images, one in big Endian and one in
> little Endian format. Using spm8 how can i go about creating volumes from
> scratch and writing it to disk.
>
> Thank you very much
> P
>
>
>
|