Trait dicom_encoding::adapters::PixelDataObject[][src]

pub trait PixelDataObject {
    fn rows(&self) -> Option<u16>;
fn cols(&self) -> Option<u16>;
fn samples_per_pixel(&self) -> Option<u16>;
fn bits_allocated(&self) -> Option<u16>;
fn number_of_frames(&self) -> Option<u16>;
fn number_of_fragments(&self) -> Option<u32>;
fn fragment(&self, fragment: usize) -> Option<Vec<u8>>;
fn raw_pixel_data(&self) -> Option<RawPixelData>; }
Expand description

PixelDataObject trait contains all relevant data to decode pixel data

Required methods

Return the Rows attribute or None if it is not found

Return the Columns attribute or None if it is not found

Return the SamplesPerPixel attribute or None if it is not found

Return the BitsAllocated attribute or None if it is not set

Return the NumberOfFrames attribute or None if it is not set

Returns the number of fragments or None for native pixel data

Return a specific encoded pixel fragment by index as Vec or None if no pixel data is found

Should return either a byte slice/vector if native pixel data or byte fragments if encapsulated. Returns None if no pixel data is found

Implementors