Trait nifti::volume::NiftiVolume [−][src]
pub trait NiftiVolume { fn dim(&self) -> &[u16]; fn data_type(&self) -> NiftiType; fn dimensionality(&self) -> usize { ... } }
Expand description
Public API for a NIFTI volume.
This API is currently experimental and will likely be subjected to various changes and additions in future versions.
Required methods
Get the dimensions of the volume. Unlike how NIFTI-1
stores dimensions, the returned slice does not include
dim[0]
and is clipped to the effective number of dimensions.
Provided methods
fn dimensionality(&self) -> usize
[src]
fn dimensionality(&self) -> usize
[src]Get the volume’s number of dimensions. In a fully compliant file,
this is equivalent to the corresponding header’s dim[0]
field
(with byte swapping already applied).