|
Algorithm 1 Frequency-Filtered Angular Measurement Algorithm |
-
Input:
Reference image , displaced image , Talbot distance , number of pixels N.
-
Output:
Angular offset in the x-direction ; Angular offset in the y-direction .
-
1:
Acquire the reference image and the displaced image .
-
2:
Compute the horizontal and vertical sums of to obtain and , respectively. Similarly, compute the horizontal and vertical sums of to obtain and .
-
3:
Perform Fourier transform on , , , and to obtain their respective frequency domain representations , , , and .
-
4:
Calculate the frequency domain phase information by computing for the horizontal direction and for the vertical direction.
-
5:
Compute the frequency domain phase slopes in the x-direction and in the y-direction.
-
6:
Calculate the angular offsets and in the x-direction and y-direction, respectively, using the following formulas:
|