niw
Newbie level 1
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.
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.