AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
December 22, 2009 12:05PM
Byte swapping does not appear appropriate for this data,
as the negative values look correct (to me).

Without scaling, the data range is from -6464 to 32767.
The scale factor is 1.13753.

So applying AFNI_DICOM_RESCALE looks incorrect, or at least
unmanageable. The positive range of short integers already
hits the maximum signed short. So scaling by more than 1.0
will result in wrap-around, messing up your data.

I suggest that you do not use AFNI_DICOM_RESCALE. And if
the negatives in the data bother you, chop them off.

If you really want to scale the data, apply it after to3d
using 3dcalc, but writing the data out as float:

3dcalc -a anat+orig -expr 'a*1.13753' -prefix anat.scaled -datum float

- rick

Subject Author Posted

Byte-swapping for to3d?

Yisheng Xu December 22, 2009 10:58AM

Re: Byte-swapping for to3d?

rick reynolds December 22, 2009 11:05AM

Re: Byte-swapping for to3d?

Yisheng Xu December 22, 2009 11:09AM

Re: Byte-swapping for to3d?

rick reynolds December 22, 2009 12:05PM

Re: Byte-swapping for to3d?

Yisheng Xu December 22, 2009 12:30PM

Re: Byte-swapping for to3d?

Yisheng Xu December 22, 2009 12:31PM

Re: Byte-swapping for to3d?

rick reynolds December 22, 2009 12:50PM