pub struct Slide<R> { /* private fields */ }
Expand description
Represents a slide (contains multiple panoramas) in the *.mcd format
Implementations§
Source§impl<R: Read + Seek> Slide<R>
impl<R: Read + Seek> Slide<R>
Sourcepub fn create_overview_image(
&self,
width: u32,
channel_to_show: Option<(&ChannelIdentifier, Option<f32>)>,
) -> Result<RgbaImage, MCDError>
pub fn create_overview_image( &self, width: u32, channel_to_show: Option<(&ChannelIdentifier, Option<f32>)>, ) -> Result<RgbaImage, MCDError>
Create an overview image of the slide scaled to the supplied width.
This will scale the slide image to the supplied width, and overlay any panorama images acquired.
If an channel_to_show
is supplied, then the selected channel (ChannelIdentifier
) will be
overlayed with the data clipped at the specified maximum value (f32).
Source§impl<R> Slide<R>
impl<R> Slide<R>
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the description given to the slide
Sourcepub fn width_in_um(&self) -> f64
pub fn width_in_um(&self) -> f64
Returns the width of the slide in μm
Sourcepub fn height_in_um(&self) -> f64
pub fn height_in_um(&self) -> f64
Returns the height of the slide in μm
Sourcepub fn image_file(&self) -> &str
pub fn image_file(&self) -> &str
Returns the name of the image file used as a slide image
Sourcepub fn software_version(&self) -> &str
pub fn software_version(&self) -> &str
Returns the version of the software used to produce this *.mcd file
Sourcepub fn fmark_slide_length(&self) -> Option<u64>
pub fn fmark_slide_length(&self) -> Option<u64>
Returns the fmark slide length
Sourcepub fn fmark_slide_thickness(&self) -> Option<u64>
pub fn fmark_slide_thickness(&self) -> Option<u64>
Returns the fmark slide thickness
Sourcepub fn image(&self) -> OpticalImage<R>
pub fn image(&self) -> OpticalImage<R>
Returns the image associated with the slide
Sourcepub fn panorama_ids(&self) -> Vec<u16>
pub fn panorama_ids(&self) -> Vec<u16>
Returns a vector of panorama ids sorted by ID number. This allocates a new vector on each call.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Slide<R>
impl<R> RefUnwindSafe for Slide<R>
impl<R> Send for Slide<R>where
R: Send,
impl<R> Sync for Slide<R>where
R: Send,
impl<R> Unpin for Slide<R>
impl<R> UnwindSafe for Slide<R>
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.