Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top