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

pub trait NiftiVolume {
    fn dim(&self) -> &[u16];
fn data_type(&self) -> NiftiType; 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

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.

fn data_type(&self) -> NiftiType

Get this volume's data type.

Loading content...

Provided methods

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

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