Struct dicom_pixeldata::WindowLevelTransform
source · [−]pub struct WindowLevelTransform { /* private fields */ }
Expand description
A full description of a VOI LUT function transformation based on a window level.
Implementations
sourceimpl 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
sourceimpl Debug for WindowLevelTransform
impl Debug for WindowLevelTransform
sourceimpl PartialEq<WindowLevelTransform> for WindowLevelTransform
impl PartialEq<WindowLevelTransform> for WindowLevelTransform
sourcefn eq(&self, other: &WindowLevelTransform) -> bool
fn eq(&self, other: &WindowLevelTransform) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WindowLevelTransform) -> bool
fn ne(&self, other: &WindowLevelTransform) -> bool
This method tests for !=
.
impl StructuralPartialEq for WindowLevelTransform
Auto Trait Implementations
impl RefUnwindSafe for WindowLevelTransform
impl Send for WindowLevelTransform
impl Sync for WindowLevelTransform
impl Unpin for WindowLevelTransform
impl UnwindSafe for WindowLevelTransform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more