pub struct Epry {Show 16 fields
pub iterations: usize,
pub object_step: f64,
pub pupil_step: f64,
pub batch_size: usize,
pub recover_pupil: bool,
pub constrain_pupil_support: bool,
pub recover_frame_gains: bool,
pub gain_step: f64,
pub minimum_gain: f64,
pub maximum_gain: f64,
pub recover_background: bool,
pub background_step: f64,
pub minimum_background: f64,
pub maximum_background: f64,
pub epsilon: f64,
pub loss_type: LossType,
}Expand description
Embedded pupil-recovery reconstruction for Fourier ptychographic microscopy.
§Method
EPRY alternates detector-amplitude projection with two normalized updates: the exit-wave error is divided by pupil power to update the overlapping object-spectrum patch and by object-patch power to update the pupil. Jointly recovering these two complex functions lets the pupil absorb aberrations that would otherwise be imprinted on the reconstructed object. The pupil can be projected back onto the known aperture support after every update.
This implementation also optionally estimates a relative gain and an additive, spatially uniform background for each frame. Those calibration updates and incoherent multiplexing support are crate extensions to the reference EPRY method.
§Reference
X. Ou, G. Zheng, and C. Yang, “Embedded pupil function recovery for Fourier ptychographic microscopy,” Optics Express 22(5), 4960–4972 (2014), doi:10.1364/OE.22.004960.
Fields§
§iterations: usizeNumber of complete passes through the acquisition schedule.
object_step: f64Relaxation factor applied to each object-spectrum correction.
pupil_step: f64Relaxation factor applied to each pupil correction.
batch_size: usizeNumber of measured frames supplied to each reconstruction step.
recover_pupil: boolWhether to update the complex pupil alongside the object.
constrain_pupil_support: boolWhether to zero recovered pupil values outside the compiled aperture.
recover_frame_gains: boolWhether to estimate one multiplicative intensity gain per frame.
gain_step: f64Fraction of each least-squares frame-gain estimate applied per update.
minimum_gain: f64Lower bound for recovered frame gains; must be positive.
maximum_gain: f64Upper bound for recovered frame gains.
recover_background: boolWhether to estimate one additive, spatially uniform background per frame.
background_step: f64Fraction of the mean frame residual added to the background per update.
minimum_background: f64Lower bound for recovered background intensities.
maximum_background: f64Upper bound for recovered background intensities.
epsilon: f64Positive numerical floor used in normalized updates.
loss_type: LossTypeLoss used for diagnostics; the projection itself always enforces the measured amplitude.