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: Optics§illumination: Illumination§optical_background: Option<Vec<f64>>Optional optical intensity background, broadcast or stored per frame.
Implementations§
Source§impl ExperimentDescription
impl ExperimentDescription
pub fn new(optics: Optics, illumination: Illumination) -> Self
pub fn with_optical_background(self, background: Vec<f64>) -> Self
pub fn compile( &self, image_shape: (usize, usize), reconstruction_shape: ReconstructionShape, ) -> Result<ImagePlaneModel>
pub fn validate(&self) -> Result<()>
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