pub struct NiftiData {
pub data: Vec<f64>,
pub dims: (usize, usize, usize),
pub voxel_size: (f64, f64, f64),
pub affine: [f64; 16],
pub scl_slope: f64,
pub scl_inter: f64,
}Expand description
NIfTI data loaded from bytes
Fields§
§data: Vec<f64>Volume data as f64
dims: (usize, usize, usize)Dimensions (nx, ny, nz) - only 3D supported for now
voxel_size: (f64, f64, f64)Voxel sizes in mm
affine: [f64; 16]Affine transformation matrix (4x4, row-major)
scl_slope: f64Data scaling slope
scl_inter: f64Data scaling intercept
Auto Trait Implementations§
impl Freeze for NiftiData
impl RefUnwindSafe for NiftiData
impl Send for NiftiData
impl Sync for NiftiData
impl Unpin for NiftiData
impl UnsafeUnpin for NiftiData
impl UnwindSafe for NiftiData
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more