Phase Unwrapping with ATAN

Status
Not open for further replies.

stiltz

Junior Member level 2
Joined
Jul 15, 2006
Messages
23
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
1,415
Hi,

We know that if we use four quadrant arctangent function i.e. ATAN2(Q,I) where we have wrapped phase with discontinuities of 2*PI. There are algorithms which can unwrap this phase. But there are some situations where we have to use two quadrant arctangent function i.e. ATAN(Q/I) where we have wrapped phase with discontinuities of PI. I can not find any algorithm to unwrap this phase. Can any one help me how to unwrap the phase in this case ????

Thanks,
 

Hi stiltz,

you can construct you own atan2(Q,I) function using standard atan2(r) function.
If I'm not wrong:

(Attention to the cases I==0 !!!)

if I>=0
atan2 = atan(Q/I)
else if y>=0
atan2 = atan(Q/I) + pi
else
atan2 = atan(Q/I) - pi
end

then, you can unwrap like you know.
Regards

Z
 

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