[][src]Trait nifti::volume::Sliceable

pub trait Sliceable {
    type Slice: NiftiVolume;
    pub fn get_slice(&self, axis: u16, index: u16) -> Result<Self::Slice>;
}

Interface for a volume that can be sliced at an arbitrary position.

Associated Types

type Slice: NiftiVolume[src]

The type of the resulting slice, which is also a volume.

Loading content...

Required methods

pub fn get_slice(&self, axis: u16, index: u16) -> Result<Self::Slice>[src]

Obtain a slice of the volume over a certain axis, yielding a volume of N-1 dimensions.

Loading content...

Implementations on Foreign Types

impl<'a, T> Sliceable for &'a T where
    &'a T: NiftiVolume
[src]

type Slice = SliceView<&'a T>

Loading content...

Implementors

Loading content...