struct Conformed {
data: Vec<u8>,
dims: (usize, usize, usize),
in_affine: [[f32; 4]; 4],
out_affine: [[f32; 4]; 4],
}Expand description
The input conformed to the 256³ 1 mm LIA grid, plus what is needed to map a mask back.
The geometry is computed as niimath computes it — f32 matrices, inverted in f64 and
rounded back to f32, applied in f32 in the same order — so that voxels whose sample point
falls on a rounding tie (common: a 0.9375 mm grid against a 1 mm one) land where niimath puts
them.
Fields§
§data: Vec<u8>Conformed u8 intensities, column-major (256, 256, 256).
dims: (usize, usize, usize)Input dimensions.
in_affine: [[f32; 4]; 4]Input voxel→world, as f32.
out_affine: [[f32; 4]; 4]Conformed voxel→world, as f32.
Implementations§
Auto Trait Implementations§
impl Freeze for Conformed
impl RefUnwindSafe for Conformed
impl Send for Conformed
impl Sync for Conformed
impl Unpin for Conformed
impl UnsafeUnpin for Conformed
impl UnwindSafe for Conformed
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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