pub struct WindowLevelTransform { /* private fields */ }Expand description
A full description of a VOI LUT function transformation based on a window level.
Implementations§
Source§impl WindowLevelTransform
impl WindowLevelTransform
Sourcepub fn new(voi_lut_function: VoiLutFunction, window_level: WindowLevel) -> Self
pub fn new(voi_lut_function: VoiLutFunction, window_level: WindowLevel) -> Self
Create a new window level transformation.
The width of the given window_level is automatically clamped
if it is incompatible with the given LUT function:
it muse be >= 0 if the function is LinearExact,
and >= 1 in other functions.
Sourcepub fn linear(window_level: WindowLevel) -> Self
pub fn linear(window_level: WindowLevel) -> Self
Create a new window level transformation
with the LINEAR function.
The width of the given window_level is automatically clamped
to 1 if it is lower than 1.
Trait Implementations§
Source§impl Debug for WindowLevelTransform
impl Debug for WindowLevelTransform
Source§impl PartialEq for WindowLevelTransform
impl PartialEq for WindowLevelTransform
impl StructuralPartialEq for WindowLevelTransform
Auto Trait Implementations§
impl Freeze for WindowLevelTransform
impl RefUnwindSafe for WindowLevelTransform
impl Send for WindowLevelTransform
impl Sync for WindowLevelTransform
impl Unpin for WindowLevelTransform
impl UnwindSafe for WindowLevelTransform
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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