I have a problem, I'd like to modulate the phase of the middle part of the Fourier plan (2D). If I don't modulate it, just calculate the input and the output volume, they will be the same. But if I shift the phase, for example add Pi to the middle part of the Fourier, the output will be greater than the input, and the problem is that it is physically not possible...
Part of my code:
amp=sqrt(re.^2+im.^2);%abs(ff2) is the same
phi=atan2(im,re); %angle(ff2) is the same, real
f_mod=faz_mod(half_side,8, 3.14 ,phi)
for i = -half_side:half_side-1
for j = -half_side:half_side-1
a_mod=amp_mod(old_fele,8, 1 ,amp);
Can anybody help me, what's wrong with it?