有会相位恢复算法的吗?能帮我看看下面的代码错哪儿了吗?不胜感激 vP88%I;
_y5b>+
2d centered Fourier transform,居中的傅里叶变换 U:YT>U1Z
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ke)3*.Y%C
% Citation for this code and algorithm: eT:%i"C
% Tatiana Latychevskaia and Hans-Werner Fink (w"zI!
% "Practical algorithms for simulation and reconstruction of digital in-line holograms", D@O'8
% Appl. Optics 54, 2424 - 2434 (2015) +w GE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Z-]d_Y~m4
% The code is written by Tatiana Latychevskaia, 2002 gt{ei)2b
% The version of Matlab for this code is R2010b So0YvhZ+
n'%*vdHKm
function [out] = FT2Dc(u0); pEhWgCL
t2tH%%Rs
[Nx, Ny] = size(1i,1j); &$vDC M4
R1J"QU
f1 = zeros(Nx,Ny); >.J68x
/M B0%6m
for ii = 1:Nx Y:*mAv;&
for jj = 1:Ny VY~WkSi[<
f1(ii,jj) = exp(1i*pi*(ii + jj)); 6Y\9h)1Jo
end 1cOp"!
end q&
4Z.(
'<6Gz7O
FT = fft2(f1.*in); LFV;Y.-(h
8=)Aksu
out = f1.*FT; ,|xG2G6
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%