有会相位恢复算法的吗?能帮我看看下面的代码错哪儿了吗?不胜感激 84PD`A
j
s(E-d/
2d centered Fourier transform,居中的傅里叶变换 R=D\VIu,Z
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OL+!,Y
% Citation for this code and algorithm: ,gU%%>-_~w
% Tatiana Latychevskaia and Hans-Werner Fink 0 O{Y
Vk`
% "Practical algorithms for simulation and reconstruction of digital in-line holograms", wp/u*g
% Appl. Optics 54, 2424 - 2434 (2015) C:tA|<b|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% KR
% The code is written by Tatiana Latychevskaia, 2002 o]NL_SM_
% The version of Matlab for this code is R2010b =hV-E
D
f;/t7=>d
function [out] = FT2Dc(u0); Z=: oIAe
niO(>
[Nx, Ny] = size(1i,1j); !'14mN#A
]
=Js 5
f1 = zeros(Nx,Ny); qA- ya6
Q*TxjE7K
for ii = 1:Nx v}6YbY Tq
for jj = 1:Ny my#qmI
f1(ii,jj) = exp(1i*pi*(ii + jj)); ht^U VV2
end I3Sl>e(Z
end C9-9cdW
H
5H6GZ:hp
FT = fft2(f1.*in); >Kl78w:
9X&Xs/B
out = f1.*FT; ,2>:h"^
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%