pub struct FloatPixelView<'a> { /* private fields */ }Expand description
Borrowed OF/OD sample bits, never an aligned float cast or image normalization. Only designated DICOM Float/DoubleFloat Pixel Data tags enter this image view.
Implementations§
Source§impl<'a> FloatPixelView<'a>
impl<'a> FloatPixelView<'a>
pub fn from_dataset( ds: &Part10Dataset<'a>, max_pixel_bytes: usize, w: &mut WorkBudget, ) -> Result<Self, PaddingError>
pub fn source_blake3(&self) -> [u8; 32]
pub fn width(&self) -> FloatWidth
pub fn rows(&self) -> u16
pub fn columns(&self) -> u16
pub fn frames(&self) -> u32
pub fn stored_sample_bytes(&self) -> &'a [u8] ⓘ
pub fn padding(&self) -> FloatPadding
pub fn sample_bits( &self, frame: u32, row: u16, column: u16, ) -> Result<FloatBits, PaddingError>
pub fn sample( &self, frame: u32, row: u16, column: u16, ) -> Result<FloatSample, PaddingError>
pub fn quantitative_sample<'b>( &self, record: &FrameRecord<'b>, row: u16, column: u16, real_world: bool, ) -> Result<QuantitativeSample<'b>, PaddingError>
Auto Trait Implementations§
impl<'a> Freeze for FloatPixelView<'a>
impl<'a> RefUnwindSafe for FloatPixelView<'a>
impl<'a> Send for FloatPixelView<'a>
impl<'a> Sync for FloatPixelView<'a>
impl<'a> Unpin for FloatPixelView<'a>
impl<'a> UnsafeUnpin for FloatPixelView<'a>
impl<'a> UnwindSafe for FloatPixelView<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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