zPIE: an autofocusing algorithm for ptychography
An autofocusing algorithm for ptychography is proposed. The method optimizes a sharpness metric that would be observed in a differential interference microscope and is valid for both amplitude and phase modulating specimens. We experimentally demonstrate that the algorithm, based on the extended ptychographic iterative engine (ePIE), calibrates the sample–detector distance with an accuracy within the depth of field of the ptychographic microscope. We show that the method can be used to determine slice separation in multislice ptychography, provided there are isolated regions on each slice of the specimen that do not axially overlap.