NiftiOrientation¶
struct NiftiOrientation
Orientation metadata for NIfTI output files.
Bundles direction cosines (in RAS convention), voxel sizes, and position
offset. When valid is false the NIFTI writer falls back to identity
orientation with 1 mm isotropic voxels.
Variables¶
| Name | Description |
|---|---|
| voxel_size | 3x3 direction cosine matrix (RAS convention). |
| position | World position in mm (RAS) of the centre of voxel (0,0,0). |
| valid | True when this struct contains valid orientation data. |
Variable Details¶
position¶
float position[3]
World position in mm (RAS) of the centre of voxel (0,0,0).
valid¶
bool valid
True when this struct contains valid orientation data.
voxel_size¶
float voxel_size[3]
3x3 direction cosine matrix (RAS convention). Columns = NIfTI axes i, j, k. For FORGE images these are the phase, read and slice directions (FORGE stores y fastest). dircos[row][col]: row = x/y/z output axis, col = i/j/k. Voxel dimensions in mm along NIfTI axes i, j, k.