[−][src]Trait nifti::volume::NiftiVolume
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
pub fn dim(&self) -> &[u16]
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.
pub fn data_type(&self) -> NiftiType
Get this volume's data type.
Provided methods
pub fn dimensionality(&self) -> usize
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).
Implementors
impl NiftiVolume for InMemNiftiVolume
[src]
pub fn dim(&self) -> &[u16]
[src]
pub fn dimensionality(&self) -> usize
[src]
pub fn data_type(&self) -> NiftiType
[src]
impl<'a> NiftiVolume for &'a InMemNiftiVolume
[src]
pub fn dim(&self) -> &[u16]
[src]
pub fn dimensionality(&self) -> usize
[src]
pub fn data_type(&self) -> NiftiType
[src]
impl<'a, R> NiftiVolume for &'a StreamedNiftiVolume<R>
[src]
pub fn dim(&self) -> &[u16]
[src]
pub fn dimensionality(&self) -> usize
[src]
pub fn data_type(&self) -> NiftiType
[src]
impl<R> NiftiVolume for StreamedNiftiVolume<R>
[src]
pub fn dim(&self) -> &[u16]
[src]
pub fn dimensionality(&self) -> usize
[src]
pub fn data_type(&self) -> NiftiType
[src]
impl<V> NiftiVolume for SliceView<V> where
V: NiftiVolume,
[src]
V: NiftiVolume,