|
Dear AMR, chris and samuel
It is possible
to embed as follows using MATLAB:
1)calculate DFT = fft2(x); % where x is an image
matrix
2)now separate real and
imaginary parts:
REL=real(DFT);
IMG = imag(DFT);
3) calculate Phase and
Magnitude:
FAZE=atan2(IMG,REL);
% Theta
MAG =
sqrt((REL.*REL)+(IMG.*IMG)); %
R
4)Embed in "MAG"
(magnitude)
=> MAG_embed
5)Now go back as follows
CMPLX_A = MAG_embed.*(cos(FAZE)); %% R
cos(Theta)
CMPLX_B = MAG_embed.*(sin(FAZE)); %% R
sin(Theta)
CMPLX = complex(CMPLX_A,CMPLX_B); %%
Reconstruction from Magnitude and Phase = R cos(Theta)+ i (R
sin(Theta))
IDFT = real(ifft2(CMPLX));
_________________________________________________________________________________________________
Now what do you think, is this correct and
what about its robustness.
AMGee
|