|
TPCCLIB
|
#include <libtpcimgio.h>
Data Fields | |
| int | sizeof_hdr |
| char | data_type [10] |
| char | db_name [18] |
| int | extents |
| short int | session_error |
| char | regular |
| char | dim_info |
| short int | dim [8] |
| float | intent_p1 |
| float | intent_p2 |
| float | intent_p3 |
| short int | intent_code |
| short int | datatype |
| short int | bitpix |
| short int | slice_start |
| float | pixdim [8] |
| float | vox_offset |
| float | scl_slope |
| float | scl_inter |
| short int | slice_end |
| char | slice_code |
| char | xyzt_units |
| float | cal_max |
| float | cal_min |
| float | slice_duration |
| float | toffset |
| int | glmax |
| int | glmin |
| char | descrip [80] |
| char | aux_file [24] |
| short int | qform_code |
| short int | sform_code |
| float | quatern_b |
| float | quatern_c |
| float | quatern_d |
| float | qoffset_x |
| float | qoffset_y |
| float | qoffset_z |
| float | srow_x [4] |
| float | srow_y [4] |
| float | srow_z [4] |
| char | intent_name [16] |
| char | magic [4] |
Nifti-1 header, 348 bytes
Definition at line 2157 of file libtpcimgio.h.
| char NIFTI_1_HEADER::aux_file[24] |
Auxiliary file name (byte offset 228)
Definition at line 2221 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::bitpix |
Nr of bits per voxel (byte offset 72)
Definition at line 2188 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), niftiReadImagedata(), and niftiWriteHeader().
| float NIFTI_1_HEADER::cal_max |
Max display intensity (byte offset 124)
Definition at line 2206 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::cal_min |
Min display intensity (byte offset 128)
Definition at line 2208 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| char NIFTI_1_HEADER::data_type[10] |
Unused. Needed for compatibility with Analyze (byte offset 4)
Definition at line 2161 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::datatype |
Data type (byte offset 70)
Definition at line 2186 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), niftiReadImagedata(), and niftiWriteHeader().
| char NIFTI_1_HEADER::db_name[18] |
Unused. Needed for compatibility with Analyze (byte offset 14)
Definition at line 2163 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| char NIFTI_1_HEADER::descrip[80] |
Free text field for study description (byte offset 148)
Definition at line 2219 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::dim[8] |
Data array dimensions; dim[0] is for the nr of dimensions, 1,2,3 are for space, 4 is for time, 5 is for storing multiple values at each spatiotemporal voxel. (byte offset 40)
Definition at line 2176 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), imgWriteNiftiFrame(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), niftiReadImagedata(), and niftiWriteHeader().
| char NIFTI_1_HEADER::dim_info |
MRI slice ordering, encoding directions(phase, frequency, slice). (byte offset 39)
Definition at line 2171 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| int NIFTI_1_HEADER::extents |
Unused. Value 16384 needed for compatibility with Analyze (byte offset 32)
Definition at line 2165 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| int NIFTI_1_HEADER::glmax |
Unused. Needed for compatibility with Analyze. (byte offset 140)
Definition at line 2214 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| int NIFTI_1_HEADER::glmin |
Unused. Needed for compatibility with Analyze. (byte offset 144)
Definition at line 2216 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::intent_code |
NIFTI_INTENT_* (byte offset 68).
Definition at line 2184 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| char NIFTI_1_HEADER::intent_name[16] |
Name or Meaning of data (Offset 0) (byte offset 328)
Definition at line 2246 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::intent_p1 |
1st intent parameter, dependent on intent_code (byte offset 56)
Definition at line 2178 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::intent_p2 |
2nd intent parameter, dependent on intent_code (byte offset 60)
Definition at line 2180 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::intent_p3 |
3rd intent parameter, dependent on intent_code (byte offset 64)
Definition at line 2182 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| char NIFTI_1_HEADER::magic[4] |
Magic string, "ni1\0" (dual file) or "n+1\0" (single file) (byte offset 344). If zero, file should be treated as Analyze.
Definition at line 2250 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), imgWriteNiftiFrame(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), niftiReadImagedata(), and niftiWriteHeader().
| float NIFTI_1_HEADER::pixdim[8] |
Grid spacings starting from pixdim[1]; pixdim[0] contains orientation (byte offset 76)
Definition at line 2192 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::qform_code |
Use the quaternion fields, NIFTI_XFORM_UNKNOWN, NIFTI_XFORM_SCANNER_ANAT, or NIFTI_XFORM_ALIGNED_ANAT. (byte offset 252)
Definition at line 2224 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::qoffset_x |
Quaternion x shift (byte offset 268)
Definition at line 2234 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::qoffset_y |
Quaternion y shift (byte offset 272)
Definition at line 2236 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::qoffset_z |
Quaternion z shift (byte offset 276)
Definition at line 2238 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::quatern_b |
Quaternion b parameter (byte offset 256)
Definition at line 2228 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::quatern_c |
Quaternion c parameter (byte offset 260)
Definition at line 2230 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::quatern_d |
Quaternion d parameter (byte offset 264)
Definition at line 2232 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| char NIFTI_1_HEADER::regular |
Unused. Value 'r' needed for compatibility with Analyze (byte offset 38)
Definition at line 2169 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::scl_inter |
Data scaling: offset (byte offset 116); pixel values should be scaled as scl_slope*x + scl_inter
Definition at line 2198 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), niftiReadImagedata(), and niftiWriteHeader().
| float NIFTI_1_HEADER::scl_slope |
Data scaling: slope (byte offset 112); pixel values should be scaled as scl_slope*x + scl_inter
Definition at line 2196 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), niftiReadImagedata(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::session_error |
Unused. Needed for compatibility with Analyze (byte offset 36)
Definition at line 2167 of file libtpcimgio.h.
Referenced by niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::sform_code |
Use of the affine fields, NIFTI_XFORM_* code (byte offset 254)
Definition at line 2226 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| int NIFTI_1_HEADER::sizeof_hdr |
Size of the header. Must be 348 for NIFTI-1, and 540 for NIFTI-2 (byte offset 0)
Definition at line 2159 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| char NIFTI_1_HEADER::slice_code |
Slice timing order (byte offset 122)
Definition at line 2202 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::slice_duration |
Time for 1 slice (byte offset 132)
Definition at line 2210 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::slice_end |
Last slice index (byte offset 120)
Definition at line 2200 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| short int NIFTI_1_HEADER::slice_start |
First slice index (byte offset 74)
Definition at line 2190 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::srow_x[4] |
1st row affine transformation (byte offset 280)
Definition at line 2240 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::srow_y[4] |
2nd row affine transformation (byte offset 296)
Definition at line 2242 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::srow_z[4] |
3rd row affine transformation (byte offset 312)
Definition at line 2244 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::toffset |
Time axis shift (byte offset 136)
Definition at line 2212 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().
| float NIFTI_1_HEADER::vox_offset |
Offset into .nii file (byte offset 108)
Definition at line 2194 of file libtpcimgio.h.
Referenced by imgSetNiftiHeader(), imgWriteNiftiFrame(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), niftiReadImagedata(), and niftiWriteHeader().
| char NIFTI_1_HEADER::xyzt_units |
Units of pixdim[1..4], combination of NIFTI_UNITS_* (byte offset 123).
Definition at line 2204 of file libtpcimgio.h.
Referenced by imgGetNiftiHeader(), imgSetNiftiHeader(), niftiHeaderFromIFT(), niftiHeaderToIFT(), niftiPrintHeader(), niftiReadHeader(), and niftiWriteHeader().