Home > other >  Four-step phase-shifting method to extract phase (phase solution package), the primary problem
Four-step phase-shifting method to extract phase (phase solution package), the primary problem

Time:10-13

Recently in self-study four-step phase-shifting method to extract phase, there is a primary question:
Four picture phase shift a, b, c, d are as follows: the complete solution code is as follows:
After the program is running, mainly figure (7) and figure (8) understand that we didn't. From figure (5) and figure (6) can be seen in the outline of the object to be tested, but from the figure (7) and figure (8), how is it possible to see the outline of an object? Figure (7) and figure (8) unpacking is how to solve?
As a beginner, so please feel free to comment, thank you,


clc;
Clear all
CLF
X1=imread (' a. mp);
X2=imread (' b.b mp);
The X3=imread (' mount mp);
X4=imread (' db mp);
figure(1); I1=imresize (X1, 1, 'bilinear'); Imshow (I1);
figure(2); I2=imresize (X2, 1, 'bilinear'); Imshow (I2);
Figure (3); I3=imresize (X3, 1, 'bilinear'); Imshow (I3);
Figure (4); I2=imresize (X4, 1, 'bilinear'); Imshow (i2);

N [M]=size (I1);
I1=double (I1);
I2=double (I2);
I3=double (I3);
I2=double (i2);

For j=1:6 15
For I=2: M
Phase (I, j)=atan2 (I2 (I, j) - I2 (I, j), I1 (I, j) - I3 (I, j));
End
End
% four-step phase shift method to calculate the phase
Figure (5);
Imshow (mat2gray (phase));
Figure (6);
Imshow (phase);

N=zeros (M, 615); % to unpack the
N (1, 1)=0;
For I=15
"If abs (phase (1, I) - phase (1, 1) I) & lt; PI
N (1, I)=n (1, I - 1);
Elseif phase (1, I) - phase (1, 1) I & lt;=- PI
N (1, I)=n (1, I - 1) + 1;
Elseif phase (1, I) - phase (1, 1) I & gt;=PI
N (1, I)=n (1, 1) I - 1;
End
End

For I=2:57 6
For j=1:6 15
If abs (phase (I, j), phase (I - 1, j)) & lt; PI
N (I, j)=n (I - 1, j);
Elseif phase (I, j), phase (I - 1, j) & lt;=- PI
N (I, j)=n (I - 1, j) + 1;
Elseif phase (I, j), phase (I - 1, j) & gt;=PI
N (I, j)=n (I - 1, j) - 1;
End
End
End

Pphase=phase + 2 * PI * n.
Figure (7);
Imshow (mat2gray (pphase));
figure(8);
Surf (pphase (2: end - 1, 2: end - 1));

CodePudding user response:

Image upload a little problem here, you can refer to the following link, thank you,
http://zhidao.baidu.com/question/713095352075331125.html

CodePudding user response:

You said figure5 phase (wrapped phase), and 6 is truncated phase by atan2 function solution at the moment in between [- PI, PI], so the back as point again, for each point of the corresponding stripe classes n, into pphase=phase + 2 * PI. * n. This is the final phase, is also a package solution phase

CodePudding user response:

The original poster hello, may I have your solution package here with what method? I have recently been learning step four phase shift method, thank you for your advice,

CodePudding user response:

People also pay close attention to the post

CodePudding user response:

This program to you? I'm doing three phase shift phase reconciliation package, you this is the reference, I don't know to make images of the right

CodePudding user response:

Hello, I recently looking at this, would you please tell me why you want to put four picture, the final four are representative of this wrapped with a phase diagram and phase diagram??

CodePudding user response:

reference 5 floor Wu Shuai jie reply:
this program to you? I'm doing three phase shift phase reconciliation package, you this is the reference, I don't know to make images of the right

Hello, I am now doing three phase shift method for phase reconciliation package, could you tell me your reference under this done?

CodePudding user response:

Hello I recently in learning this problem solved to consult
  • Related