[−][src]Struct nifti::volume::SliceView
A view over a single slice of another volume.
Slices are usually created by calling the get_slice
method on another
volume with random access to voxels (see Sliceable
). This implementation
is generic and delegates most operations to the underlying volume.
Trait Implementations
impl<V> IntoNdArray for SliceView<V> where
V: NiftiVolume + IntoNdArray,
[src]
V: NiftiVolume + IntoNdArray,
fn into_ndarray<T>(self) -> Result<Array<T, IxDyn>> where
T: Mul<Output = T>,
T: Add<Output = T>,
T: DataElement,
u8: AsPrimitive<T>,
i8: AsPrimitive<T>,
u16: AsPrimitive<T>,
i16: AsPrimitive<T>,
u32: AsPrimitive<T>,
i32: AsPrimitive<T>,
u64: AsPrimitive<T>,
i64: AsPrimitive<T>,
f32: AsPrimitive<T>,
f64: AsPrimitive<T>,
[src]
T: Mul<Output = T>,
T: Add<Output = T>,
T: DataElement,
u8: AsPrimitive<T>,
i8: AsPrimitive<T>,
u16: AsPrimitive<T>,
i16: AsPrimitive<T>,
u32: AsPrimitive<T>,
i32: AsPrimitive<T>,
u64: AsPrimitive<T>,
i64: AsPrimitive<T>,
f32: AsPrimitive<T>,
f64: AsPrimitive<T>,
impl<V> NiftiVolume for SliceView<V> where
V: NiftiVolume,
[src]
V: NiftiVolume,
fn dim(&self) -> &[u16]
[src]
fn dimensionality(&self) -> usize
[src]
fn data_type(&self) -> NiftiType
[src]
impl<V> RandomAccessNiftiVolume for SliceView<V> where
V: RandomAccessNiftiVolume,
[src]
V: RandomAccessNiftiVolume,
fn get_f32(&self, coords: &[u16]) -> Result<f32>
[src]
fn get_f64(&self, coords: &[u16]) -> Result<f64>
[src]
fn get_u8(&self, coords: &[u16]) -> Result<u8>
[src]
fn get_i8(&self, coords: &[u16]) -> Result<i8>
[src]
fn get_u16(&self, coords: &[u16]) -> Result<u16>
[src]
fn get_i16(&self, coords: &[u16]) -> Result<i16>
[src]
fn get_u32(&self, coords: &[u16]) -> Result<u32>
[src]
fn get_i32(&self, coords: &[u16]) -> Result<i32>
[src]
fn get_u64(&self, coords: &[u16]) -> Result<u64>
[src]
fn get_i64(&self, coords: &[u16]) -> Result<i64>
[src]
impl<T: Clone> Clone for SliceView<T>
[src]
fn clone(&self) -> SliceView<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for SliceView<T>
[src]
Auto Trait Implementations
impl<T> Unpin for SliceView<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for SliceView<T> where
T: Sync,
T: Sync,
impl<T> Send for SliceView<T> where
T: Send,
T: Send,
impl<T> RefUnwindSafe for SliceView<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> UnwindSafe for SliceView<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,