[−][src]Struct nifti::volume::element::LinearTransformViaF32
A linear transformation in which the value is converted to f32
for the
affine transformation, then converted back to the original type. Ideal for
small, low precision types such as u8
and i16
.
Trait Implementations
impl Debug for LinearTransformViaF32
[src]
impl<T> LinearTransform<T> for LinearTransformViaF32 where
T: AsPrimitive<f32>,
f32: AsPrimitive<T>,
[src]
T: AsPrimitive<f32>,
f32: AsPrimitive<T>,
pub fn linear_transform(value: T, slope: f32, intercept: f32) -> T
[src]
pub fn linear_transform_many(value: &[T], slope: f32, intercept: f32) -> Vec<T>
[src]
pub fn linear_transform_many_inline(value: &mut [T], slope: f32, intercept: f32)
[src]
Auto Trait Implementations
impl RefUnwindSafe for LinearTransformViaF32
impl Send for LinearTransformViaF32
impl Sync for LinearTransformViaF32
impl Unpin for LinearTransformViaF32
impl UnwindSafe for LinearTransformViaF32
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,