有會(huì)相位恢復(fù)算法的嗎?能幫我看看下面的代碼錯(cuò)哪兒了嗎?不勝感激
IEvdV6{K LjHVJSC 2d centered Fourier transform,居中的傅里葉變換
`5Zz5V %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
jZrq{Z< % Citation for this code and algorithm:
Eu04e N % Tatiana Latychevskaia and Hans-Werner Fink
hehFEyx % "Practical algorithms for simulation and reconstruction of digital in-line holograms",
IMONgFBS % Appl. Optics 54, 2424 - 2434 (2015)
o*hF<D$Y %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2^yU ~`# % The code is written by Tatiana Latychevskaia, 2002
]5:8Z@ % The version of
Matlab for this code is R2010b
@pU)_d!pJ \Y}8S/] function [out] = FT2Dc(u0);
^5
Tqy(M d m%8K6| [Nx, Ny] = size(1i,1j);
<1M-Ro?5k Ozf@6\/t f1 = zeros(Nx,Ny);
ufT`"i X!g#T9kG for ii = 1:Nx
Jxm.cC5z. for jj = 1:Ny
@U}1EC{A f1(ii,jj) = exp(1i*pi*(ii + jj));
-z(+/