pub struct SliceView { /* private fields */ }Implementations§
Source§impl SliceView
impl SliceView
pub const fn plane(self) -> AnatomicalPlane
pub const fn fixed_index(self) -> u32
pub const fn dimensions(self) -> [u32; 2]
pub const fn pixel_spacing_mm(self) -> [f64; 2]
pub const fn edge_labels(self) -> EdgeLabels
pub fn voxel_at(self, pixel: [u32; 2]) -> Result<[u32; 3], ViewError>
pub fn voxel_at_fraction( self, fraction: [f32; 2], ) -> Result<[u32; 3], ViewError>
pub fn pixel_for_voxel(self, voxel: [u32; 3]) -> Result<[u32; 2], ViewError>
pub fn linear_index_at(self, pixel: [u32; 2]) -> Result<usize, ViewError>
pub fn extract<T: Copy>(self, values: &[T]) -> Result<Vec<T>, ViewError>
Trait Implementations§
impl Copy for SliceView
impl StructuralPartialEq for SliceView
Auto Trait Implementations§
impl Freeze for SliceView
impl RefUnwindSafe for SliceView
impl Send for SliceView
impl Sync for SliceView
impl Unpin for SliceView
impl UnsafeUnpin for SliceView
impl UnwindSafe for SliceView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more