Outline of CACAO-FB pipeline. (a) The captured images are broken into small tiles of isoplanatic patches (i.e., aberration is spatially invariant within each tile). (b) Data acquisition and post-processing for estimating the pupil function Pt(u, v). Limited-aperture images im,t(ξ, η) are captured with small masks, Wm(u, v) applied at the pupil plane. Local PSFs bm,t(ξ, η) are determined by the blur estimation procedure, Algorithm 1. These PSFs are synthesized into the full-aperture pupil function Pt(u, v) with Fourier-ptychography-based alternating projections algorithm, Algorithm 2. (c) Data acquisition with big masks An(u, v) at the pupil plane. (d) The recovered Pt(u, v) from (b) and the big-aperture images ϕn,t(ξ, η) from (c) are used for deconvolution (Algorithm 3) to recover the latent aberration-free intensity distribution of the sample ot(x, y).