How can I add customized (extension) data to the NIfTI-1 header?
(Bob Cox) There are two phases to this answer: clarifying where the image data is stored, and then discussing the NIfTI-1.1 approved way of storing information after the 348 byte header (and before the image data in a .nii file). Clarifying vox_offset: Of primary importance is the issue of where extended header data will be stored, and how a program is to know what is header data and what is image data. In NIfTI-1.1, the location of the image data is specified by the vox_offset header field.