Trait nifti::volume::Sliceable

source ·
pub trait Sliceable {
    type Slice: NiftiVolume;

    // Required method
    fn get_slice(&self, axis: u16, index: u16) -> Result<Self::Slice>;
}
Expand description

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

Required Associated Types§

source

type Slice: NiftiVolume

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

Required Methods§

source

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

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

Implementations on Foreign Types§

source§

impl<'a, T> Sliceable for &'a Twhere &'a T: NiftiVolume,

§

type Slice = SliceView<&'a T>

source§

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

Implementors§