open-discussion
open-discussion > RE: Add variables to NiFTi file
Jun 1, 2011 02:06 PM | Tamás Spisák
RE: Add variables to NiFTi file
you can put the
additional information after the header at the 352th
byte.
All you have to change is the value of the vox_offset filed, depending on
how many additional bytes you put in the file.
Obviously you have to take care of reading (and writing) these bytes when
opening the file, but it will be also compatible with the ordinary NIfTI
IOs.
Keep in mind, that 4 bytes after the 'magic filed' are reserved in the NIfTI
format, to keep compatibility in the future don't use them.
Hope it helped.
byte.
All you have to change is the value of the vox_offset filed, depending on
how many additional bytes you put in the file.
Obviously you have to take care of reading (and writing) these bytes when
opening the file, but it will be also compatible with the ordinary NIfTI
IOs.
Keep in mind, that 4 bytes after the 'magic filed' are reserved in the NIfTI
format, to keep compatibility in the future don't use them.
Hope it helped.
Threaded View
Title | Author | Date |
---|---|---|
Namheon Lee | May 31, 2011 | |
Ged Ridgway | Jun 1, 2011 | |
Tamás Spisák | Jun 1, 2011 | |