pub struct ExperimentDescription {
pub optics: Optics,
pub illumination: Illumination,
pub optical_background: Option<Vec<f64>>,
}Expand description
Concrete optical experiment description used to compile an image-plane model.
Fields§
§optics: OpticsPhysical microscope parameters in SI units.
illumination: IlluminationConcrete source geometry or calibrated illumination description.
optical_background: Option<Vec<f64>>Optional optical intensity background, broadcast or stored per frame.
Implementations§
Source§impl ExperimentDescription
impl ExperimentDescription
Sourcepub fn new(optics: Optics, illumination: Illumination) -> Self
pub fn new(optics: Optics, illumination: Illumination) -> Self
Creates an experiment without optical intensity background.
Sourcepub fn with_optical_background(self, background: Vec<f64>) -> Self
pub fn with_optical_background(self, background: Vec<f64>) -> Self
Sets non-negative optical intensity background values.
During compilation the vector must contain either one row-major low-resolution
frame or a full (frame, row, column) acquisition stack.
Sourcepub fn compile(
&self,
image_shape: (usize, usize),
reconstruction_shape: ReconstructionShape,
) -> Result<ImagePlaneModel>
pub fn compile( &self, image_shape: (usize, usize), reconstruction_shape: ReconstructionShape, ) -> Result<ImagePlaneModel>
Compiles optics and illumination into an owned ImagePlaneModel.
Trait Implementations§
Source§impl Clone for ExperimentDescription
impl Clone for ExperimentDescription
Source§fn clone(&self) -> ExperimentDescription
fn clone(&self) -> ExperimentDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExperimentDescription
impl Debug for ExperimentDescription
Source§impl<'de> Deserialize<'de> for ExperimentDescription
impl<'de> Deserialize<'de> for ExperimentDescription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExperimentDescription
impl RefUnwindSafe for ExperimentDescription
impl Send for ExperimentDescription
impl Sync for ExperimentDescription
impl Unpin for ExperimentDescription
impl UnsafeUnpin for ExperimentDescription
impl UnwindSafe for ExperimentDescription
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
Mutably borrows from an owned value. Read more
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> ⓘ
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