pub struct ReconstructionResult {
pub object: Array2<Complex64>,
pub amplitude: Array2<f64>,
pub phase: Array2<f64>,
pub object_spectrum: Array2<Complex64>,
pub recovered_pupil: Pupil,
pub calibrated_illumination: Option<Vec<(f64, f64)>>,
pub recovered_frame_gains: Option<Vec<f64>>,
pub recovered_background: Option<Vec<f64>>,
pub history: ReconstructionHistory,
pub diagnostics: BTreeMap<String, f64>,
pub runtime: RuntimeInfo,
pub metadata: BTreeMap<String, String>,
}Fields§
§object: Array2<Complex64>§amplitude: Array2<f64>§phase: Array2<f64>§object_spectrum: Array2<Complex64>§recovered_pupil: Pupil§calibrated_illumination: Option<Vec<(f64, f64)>>Per-source (row, column) corrections in Fourier-grid pixels.
recovered_frame_gains: Option<Vec<f64>>§recovered_background: Option<Vec<f64>>§history: ReconstructionHistory§diagnostics: BTreeMap<String, f64>§runtime: RuntimeInfo§metadata: BTreeMap<String, String>Implementations§
Source§impl ReconstructionResult
impl ReconstructionResult
pub fn save_amplitude(&self, path: impl AsRef<Path>) -> Result<()>
pub fn save_phase(&self, path: impl AsRef<Path>) -> Result<()>
pub fn save_complex_object(&self, path: impl AsRef<Path>) -> Result<()>
pub fn save_pupil(&self, path: impl AsRef<Path>) -> Result<()>
pub fn save_loss_csv(&self, path: impl AsRef<Path>) -> Result<()>
Sourcepub fn save_bundle(&self, path: impl AsRef<Path>) -> Result<()>
pub fn save_bundle(&self, path: impl AsRef<Path>) -> Result<()>
Saves every result array, calibration value, diagnostic, history entry, runtime field, and metadata value in a versioned JSON bundle.
pub fn load_bundle(path: impl AsRef<Path>) -> Result<Self>
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ReconstructionResult
impl Clone for ReconstructionResult
Source§fn clone(&self) -> ReconstructionResult
fn clone(&self) -> ReconstructionResult
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 ReconstructionResult
impl Debug for ReconstructionResult
Source§impl<'de> Deserialize<'de> for ReconstructionResult
impl<'de> Deserialize<'de> for ReconstructionResult
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 ReconstructionResult
impl RefUnwindSafe for ReconstructionResult
impl Send for ReconstructionResult
impl Sync for ReconstructionResult
impl Unpin for ReconstructionResult
impl UnsafeUnpin for ReconstructionResult
impl UnwindSafe for ReconstructionResult
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