This repository contains codes for in-line holography muti-height Gerchberg-Saxton phase retrieval with automatic affine transform preprocessing.
Follow the 'main_GSwithAT.m' code-file for full guide how to use this algorithm.
Firstly, each in-line hologram is reconstructed (propagated to the object plane), then 'AutoAffineTransform.m' function is applied to extract and match features between n-th and last reconstruction. Basing on these features, affine transforms (AT) are estimated and applied to the input holograms to correct the xy shift and magnification mismatch between holograms (gif below)
After this preprocessing step, Gerchberg-Saxton (GS) multi-height algorithm is performed to retrieve object phase with minimized twin image noise comparing to single-frame angular spectrum backpropagation (fig. below)
M. J. Marzejon, M. Rogalski, and M. Trusiak, “Affine transform-based twin-image suppression for in-line Lensless Digital Holographic Microscopy,” Submitted 2024
Mikołaj Rogalski,
[email protected]
Institute of Micromechanics and Photonics,
Warsaw University of Technology, Poland