How toobtain a phase map using Matlab

Status
Not open for further replies.

niw

Newbie level 1
Joined
Nov 12, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
phase image matlab

Hi,

I am trying to obtain phase and amplitude images by using Fresnel tranform. In my matlab program, I call the saved image (acquired by a CCD), use fft and ifft to recontruct the image field (x2) at different z distance values.
I create the amplitude image by using command
Intensity = abs(X).^2; where x2=ifft2(k2)

My question is how I should obtain phase image? In theory, phase image should be
tan inverse [ Im(x)/Real(x)]. But I cannot find the right matlab command for phase image. I tried atan, atan2, angle. None of them gave me the correct phase image.

Can someone help me with this problem please?

Thank you in advance.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…