有会相位恢复算法的吗?能帮我看看下面的代码错哪儿了吗?不胜感激 dD=$$(
je
kz7FQE
2d centered Fourier transform,居中的傅里叶变换 nQjpJ
/=
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Y \-W`
% Citation for this code and algorithm: \}s/<Q
% Tatiana Latychevskaia and Hans-Werner Fink %+N]$Q
% "Practical algorithms for simulation and reconstruction of digital in-line holograms", ,=P&{38\q
% Appl. Optics 54, 2424 - 2434 (2015) SG&,o=I$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ApXf<MAy
% The code is written by Tatiana Latychevskaia, 2002 d8wVhZKI"
% The version of Matlab for this code is R2010b yu6{ 6[
q"u, Tnc;
function [out] = FT2Dc(u0); (WyNO QO'
jtP*C_Scv/
[Nx, Ny] = size(1i,1j); 1^![8>u"
3R+%C* 7
f1 = zeros(Nx,Ny); 5@w6pda
1
:p'
for ii = 1:Nx `$B?TNuch7
for jj = 1:Ny hul,Yd) Z
f1(ii,jj) = exp(1i*pi*(ii + jj)); `
kT\V'
end #1DEZ4]jjY
end tDX&