[][src]Trait nifti::volume::NiftiVolume

pub trait NiftiVolume {
    pub fn dim(&self) -> &[u16];
pub fn data_type(&self) -> NiftiType; pub fn dimensionality(&self) -> usize { ... } }

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][src]

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[src]

Get this volume's data type.

Loading content...

Provided methods

pub 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).

Loading content...

Implementors

impl NiftiVolume for InMemNiftiVolume[src]

impl<'a> NiftiVolume for &'a InMemNiftiVolume[src]

impl<'a, R> NiftiVolume for &'a StreamedNiftiVolume<R>[src]

impl<R> NiftiVolume for StreamedNiftiVolume<R>[src]

impl<V> NiftiVolume for SliceView<V> where
    V: NiftiVolume
[src]

Loading content...