有会相位恢复算法的吗?能帮我看看下面的代码错哪儿了吗?不胜感激 eT??F
]e0yC
2d centered Fourier transform,居中的傅里叶变换 "tuBfA+f
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ; aA,H&
% Citation for this code and algorithm: Yh%a7K
% Tatiana Latychevskaia and Hans-Werner Fink 79:Wo>C3-
% "Practical algorithms for simulation and reconstruction of digital in-line holograms", &Nx'Nq9y
% Appl. Optics 54, 2424 - 2434 (2015) $Iuf(J-5[
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [da,SM
% The code is written by Tatiana Latychevskaia, 2002 $ t' .
% The version of Matlab for this code is R2010b r81YL
P.bBu
function [out] = FT2Dc(u0); b-}nv`9C
imcq
H
[Nx, Ny] = size(1i,1j); oiP8~
S4RvWTtQV
f1 = zeros(Nx,Ny); 0i}4T:J@`
w_30g6tA
for ii = 1:Nx r&AX
for jj = 1:Ny 3eUTV<!
f1(ii,jj) = exp(1i*pi*(ii + jj)); J 00<NRxj"
end N>z<v\`
end Do@:|n
"bFt+N
FT = fft2(f1.*in); %-? :'F!1
J[9yQ
out = f1.*FT; =ogzq.+|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%