Boundary-artifact-free phase retrieval with the transport of intensity equation: fast solution with use of discrete cosine transform | Synapse