[−][src]Trait nifti::volume::ndarray::IntoNdArray
Trait for volumes which can be converted to an ndarray.
Please see the module-level documentation for more details.
Required methods
pub fn into_ndarray<T>(self) -> Result<Array<T, IxDyn>> where
T: DataElement,
[src]
T: DataElement,
Consume the volume into an ndarray with the same number of dimensions
and the given target element type T
.
Implementors
impl IntoNdArray for InMemNiftiVolume
[src]
pub fn into_ndarray<T>(self) -> Result<Array<T, IxDyn>> where
T: DataElement,
[src]
T: DataElement,
Consume the volume into an ndarray.
impl<'a> IntoNdArray for &'a InMemNiftiVolume
[src]
pub fn into_ndarray<T>(self) -> Result<Array<T, IxDyn>> where
T: DataElement,
[src]
T: DataElement,
Create an ndarray from the given volume.
impl<V> IntoNdArray for SliceView<V> where
V: NiftiVolume + IntoNdArray,
[src]
V: NiftiVolume + IntoNdArray,
pub fn into_ndarray<T>(self) -> Result<Array<T, IxDyn>> where
T: DataElement,
[src]
T: DataElement,