pub struct Acquisition<R> { /* private fields */ }
Expand description
Acquisition represents a single region analysed by IMC.
Implementations§
Source§impl<R> Acquisition<R>
impl<R> Acquisition<R>
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns a description of the acquisition
Sourcepub fn order_number(&self) -> i16
pub fn order_number(&self) -> i16
Returns a number representing the order in which the acquisition was acquired (0 being first).
Sourcepub fn ablation_frequency(&self) -> f64
pub fn ablation_frequency(&self) -> f64
Returns the ablation frequency
Sourcepub fn acquisition_roi_id(&self) -> i16
pub fn acquisition_roi_id(&self) -> i16
Returns the region ID for the acquisition
Sourcepub fn profiling_type(&self) -> Option<&ProfilingType>
pub fn profiling_type(&self) -> Option<&ProfilingType>
Returns the profiling type for the acquisition, if one is present. This is not present in version 1 of the schema
Sourcepub fn before_ablation_image(&self) -> OpticalImage<R>
pub fn before_ablation_image(&self) -> OpticalImage<R>
Returns the optical image of the acquisition region prior to ablation
Sourcepub fn after_ablation_image(&self) -> OpticalImage<R>
pub fn after_ablation_image(&self) -> OpticalImage<R>
Returns the optical image of the acquisition region after ablation
Sourcepub fn channels(&self) -> &[AcquisitionChannel]
pub fn channels(&self) -> &[AcquisitionChannel]
Returns a list of all channels acquired within this acquisition
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns whether the acquisition has run to completion (checks the size of the recorded data compared to the expected data size)
Sourcepub fn pixels_in(&self, region: &BoundingBox<f64>) -> Option<Region>
pub fn pixels_in(&self, region: &BoundingBox<f64>) -> Option<Region>
Returns a Region
describing the pixel region contained within the specified bounding box
Sourcepub fn in_region(&self, region: &BoundingBox<f64>) -> bool
pub fn in_region(&self, region: &BoundingBox<f64>) -> bool
Tests whether the acquisition is (at least partially) contained within the specified bounding box (slide coordinates).
Sourcepub fn spectrum_size(&self) -> usize
pub fn spectrum_size(&self) -> usize
Returns the size of a single spectrum in bytes
Sourcepub fn num_spectra(&self) -> usize
pub fn num_spectra(&self) -> usize
Returns the number of spectra acquired as part of the acquisition
Source§impl<R: Read + Seek> Acquisition<R>
impl<R: Read + Seek> Acquisition<R>
Sourcepub fn channel_image<C: Into<ChannelIdentifier>>(
&self,
identifier: C,
region: Option<Region>,
) -> Result<ChannelImage>
pub fn channel_image<C: Into<ChannelIdentifier>>( &self, identifier: C, region: Option<Region>, ) -> Result<ChannelImage>
Returns the ChannelImage for the channel matching the ChannelIdentifier
. This contains the intensities of the channel
for each detected pixel, the number of valid pixels and the width and height of the image.
Sourcepub fn channel_images<C: AsRef<ChannelIdentifier>>(
&self,
identifiers: &[C],
region: Option<Region>,
) -> Result<Vec<ChannelImage>>
pub fn channel_images<C: AsRef<ChannelIdentifier>>( &self, identifiers: &[C], region: Option<Region>, ) -> Result<Vec<ChannelImage>>
Returns array of ChannelImages for the channels matching the ChannelIdentifier
s. This contains the intensities of the channel
for each detected pixel, the number of valid pixels and the width and height of the image.
Sourcepub fn channel<C: AsRef<ChannelIdentifier>>(
&self,
identifier: C,
) -> Option<&AcquisitionChannel>
pub fn channel<C: AsRef<ChannelIdentifier>>( &self, identifier: C, ) -> Option<&AcquisitionChannel>
Returns the channel which matches the given identifier, or None if no match found
Trait Implementations§
Source§impl<R> Clone for Acquisition<R>
impl<R> Clone for Acquisition<R>
Source§impl<R: Debug> Debug for Acquisition<R>
impl<R: Debug> Debug for Acquisition<R>
Source§impl<R> Display for Acquisition<R>
impl<R> Display for Acquisition<R>
Source§impl<R> OnSlide for Acquisition<R>
impl<R> OnSlide for Acquisition<R>
Source§fn to_slide_transform(&self) -> AffineTransform<f64>
fn to_slide_transform(&self) -> AffineTransform<f64>
Returns the affine transformation from pixel coordinates within the acquisition to to the slide coordinates (μm)
Source§fn slide_bounding_box(&self) -> BoundingBox<f64>
fn slide_bounding_box(&self) -> BoundingBox<f64>
Returns the bounding box encompasing the acquisition area on the slide (in μm)
Auto Trait Implementations§
impl<R> Freeze for Acquisition<R>
impl<R> RefUnwindSafe for Acquisition<R>
impl<R> Send for Acquisition<R>where
R: Send,
impl<R> Sync for Acquisition<R>where
R: Send,
impl<R> Unpin for Acquisition<R>
impl<R> UnwindSafe for Acquisition<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.