pub struct Fpie {
pub iterations: usize,
pub object_step: f64,
pub stability: f64,
pub batch_size: usize,
pub epsilon: f64,
pub loss_type: LossType,
}Expand description
Regularized ptychographic iterative-engine reconstruction adapted to FPM.
§Method
Fpie performs the same detector-amplitude projection as
super::AlternatingProjection, but preconditions each object correction
with the rPIE denominator
(1 - stability) * |pupil|^2 + stability * max(|pupil|^2). This blends
local inverse-pupil weighting with a global power bound, reducing unstable
updates where the pupil transfer is weak. The corrected low-resolution
spectrum is inserted into the corresponding overlapping patch of the
high-resolution object spectrum.
This crate adapts the rPIE update, originally formulated for scanned ptychography, to image-plane Fourier ptychography.
§Reference
A. Maiden, D. Johnson, and P. Li, “Further improvements to the ptychographical iterative engine,” Optica 4(7), 736–745 (2017), doi:10.1364/OPTICA.4.000736.
Fields§
§iterations: usizeNumber of complete passes through the acquisition schedule.
object_step: f64Relaxation factor applied to each object-spectrum correction.
stability: f64Blend between local pupil power (0) and maximum pupil power (1) in
the rPIE denominator.
batch_size: usizeNumber of measured frames supplied to each reconstruction step.
epsilon: f64Positive numerical floor added to the rPIE denominator.
loss_type: LossTypeLoss used for diagnostics; the projection itself always enforces the measured amplitude.