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 | Position offset in mm (RAS) of the first voxel. |
| valid | True when this struct contains valid orientation data. |
Variable Details¶
position¶
float position[3]
Position offset in mm (RAS) of the first voxel.
valid¶
bool valid
True when this struct contains valid orientation data.
voxel_size¶
float voxel_size[3]
3x3 direction cosine matrix (RAS convention). Columns = read, phase, slice directions. dircos[row][col]: row = x/y/z output axis, col = read/phase/slice. Voxel dimensions in mm along read, phase, and slice directions.