Struct dicom_object::pixeldata::InMemoryPixelData
source · pub struct InMemoryPixelData<C, P> { /* private fields */ }👎Deprecated since 0.5.0: This is a stub, use the
dicom-pixeldata crate insteadExpand description
A DICOM slice that is completely stored in memory, which may be owned by this and owned by a local vector. Pixels are stored in row-major order with no padding.
Implementations§
source§impl<C, P> InMemoryPixelData<C, P>
impl<C, P> InMemoryPixelData<C, P>
sourcepub fn into_raw_data(self) -> C
👎Deprecated since 0.5.0: This is a stub, use the dicom-pixeldata crate instead
pub fn into_raw_data(self) -> C
dicom-pixeldata crate insteadFetch the internal data container, destroying the pixel data structure in the process.
sourcepub fn raw_data(&self) -> &C
👎Deprecated since 0.5.0: This is a stub, use the dicom-pixeldata crate instead
pub fn raw_data(&self) -> &C
dicom-pixeldata crate insteadObtain a reference to the internal data container.
sourcepub fn raw_data_mut(&mut self) -> &mut C
👎Deprecated since 0.5.0: This is a stub, use the dicom-pixeldata crate instead
pub fn raw_data_mut(&mut self) -> &mut C
dicom-pixeldata crate insteadObtain a reference to the internal data container.
Trait Implementations§
source§impl<C: Clone, P: Clone> Clone for InMemoryPixelData<C, P>
impl<C: Clone, P: Clone> Clone for InMemoryPixelData<C, P>
source§fn clone(&self) -> InMemoryPixelData<C, P>
fn clone(&self) -> InMemoryPixelData<C, P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<C: PartialEq, P: PartialEq> PartialEq<InMemoryPixelData<C, P>> for InMemoryPixelData<C, P>
impl<C: PartialEq, P: PartialEq> PartialEq<InMemoryPixelData<C, P>> for InMemoryPixelData<C, P>
source§fn eq(&self, other: &InMemoryPixelData<C, P>) -> bool
fn eq(&self, other: &InMemoryPixelData<C, P>) -> bool
source§impl<C, P> PixelData for InMemoryPixelData<C, P>where
P: Clone,
C: Deref<Target = [P]>,
impl<C, P> PixelData for InMemoryPixelData<C, P>where
P: Clone,
C: Deref<Target = [P]>,
§type Pixel = P
type Pixel = P
👎Deprecated since 0.5.0: This is a stub, use the
dicom-pixeldata crate insteadThe representation of an individual pixel.
source§fn rows(&self) -> u32
fn rows(&self) -> u32
👎Deprecated since 0.5.0: This is a stub, use the
dicom-pixeldata crate insteadGet the number of rows (height) of the slice.
source§fn columns(&self) -> u32
fn columns(&self) -> u32
👎Deprecated since 0.5.0: This is a stub, use the
dicom-pixeldata crate insteadGet the number of columns (width) of the slice.
source§fn bits_per_pixel(&self) -> u32
fn bits_per_pixel(&self) -> u32
👎Deprecated since 0.5.0: This is a stub, use the
dicom-pixeldata crate insteadGet the number of bits used to represent each pixel.
source§fn samples_per_pixel(&self) -> u16
fn samples_per_pixel(&self) -> u16
👎Deprecated since 0.5.0: This is a stub, use the
dicom-pixeldata crate insteadRetrieve the number of samples (channels) per pixel.
source§impl<C, P> PixelDataMut for InMemoryPixelData<C, P>where
P: Clone,
C: DerefMut<Target = [P]>,
impl<C, P> PixelDataMut for InMemoryPixelData<C, P>where
P: Clone,
C: DerefMut<Target = [P]>,
source§fn pixel_at_mut(&mut self, w: u32, h: u32) -> Result<&mut P>
fn pixel_at_mut(&mut self, w: u32, h: u32) -> Result<&mut P>
👎Deprecated since 0.5.0: This is a stub, use the
dicom-pixeldata crate insteadObtain a mutable reference to the pixel value in the given position.
Can return PixelDataOutOfBounds error when the given coordinates
are out of the slice’s boundaries. Read more