Embedded pupil function recovery for Fourier ptychographic microscopy | Synapse