We present an erratum to J. Opt. Soc. Am. A, 39, 2376 (2022)JOAOD60740-323210.1364/JOSAA.476200. This erratum adds the mathematical proof of the unique solution of Eq. (3) in Appendix A. At the same time, we correct an unintended error in which the phase step in Fig. 3(a2) and Fig. 4(a2) did not exceed 2π. The signal-to-noise ratio (SNR) required in the proposed method is related to the step size. We analyze the required SNR under different step sizes and find that the smaller the step size, the higher the SNR that is required.