Trait nifti::volume::ndarray::IntoNdArray
source · pub trait IntoNdArray {
// Required method
fn into_ndarray<T>(self) -> Result<Array<T, IxDyn>>
where T: DataElement;
}
Expand description
Trait for volumes which can be converted to an ndarray.
Please see the module-level documentation for more details.
Required Methods§
sourcefn into_ndarray<T>(self) -> Result<Array<T, IxDyn>>where
T: DataElement,
fn into_ndarray<T>(self) -> Result<Array<T, IxDyn>>where T: DataElement,
Consume the volume into an ndarray with the same number of dimensions
and the given target element type T
.