Three-Dimensional Profiling With Binary Fringes Using Phase-Shifting Interferometry Algorithms
Three-Dimensional Profiling With Binary Fringes Using Phase-Shifting Interferometry Algorithms
I k ðx; yÞ ¼ ð255=2Þ½1 þ cosð2πf 0 x þ αk Þ; ð2Þ where Rðx0 ; y0 Þ (with 0 ≤ R ≤ 1) denotes the reflectiv-
ity of the surface.
where f 0 is the fringe frequency, and αk is the kth The binarization (thresholding) procedure applied
phase step required for the application of PSI algo- to the acquired images tends naturally to solve the
rithms. Each gray-level image I k ðx; yÞ has to be gen- problem of the reflectivity variations because, if
erated through a formula similar to (1) , the threshold is set low enough, the factor involving
the surface reflectivity has no effect on the final re-
X
8 sult, and the dominant role will be played by M ki,
I k ðx; yÞ ¼ 2ð8−iÞ M ki ðx; yÞ; ð3Þ which ideally already takes the value “one” or “zero.”
i¼1 The usual procedure to minimize the role of the
surface reflectivity (see, e.g., [15]) is to acquire an ad-
where fM 1i ðx; yÞg is the sequence of eight binary ditional image I 0 ðx0 ; y0 Þ under homogeneous illumi-
images corresponding to k ¼ 1, and fM 2i ðx; yÞg is a nation, so that I 0 ðx0 ; y0 Þ ∼ Rðx0 ; y0 Þ, and normalize
sequence similar to fM 1i ðx; yÞg but with the binary the frames I k ðx0 ; y0 Þ by I 0 ðx0 ; y0 Þ, to finally recover
fringes shifted a quantity ðα2 − α1 Þ=2πf 0 along the images unaffected by the reflectivity factor.
x axis, and so on.
3. Experimental Results
The binary image sequence fM 1i ðx; yÞg to be used
in our experiments (see Section 3) was generated We performed a series of validation experiments
using a standard procedure: Fig. 1 shows the image using a commercial LCD projector (Model CP-RX80,
sequence generated using MATLAB function Hitachi) with 1024 × 768 pixels. The images were ac-
dec2bin.m. (For simplicity, only a couple of periods quired with a monochromatic 8 bit digital camera
have been reproduced in the figure.) At the bottom (Model DC310, Thorlabs) with 1024 × 768 pixels, un-
(right corner) of Fig. 1, the sinusoidal pattern recon- der a viewing angle θ ≈ 33°.
structed using Eq. (3) is shown. First, to characterize the response of the camera/
projector system, we projected a digital image of a
B. Binarization of the Acquired Fringes
In 3-D profiling by fringe projection, the visual direc-
tion of the acquiring camera (CCD) makes an angle θ
with the direction of the light beam illuminating the
test surface (T), as schematically shown in Fig. 2. It is
easy to verify that
This expression tells us that, by acquiring Fig. 2. Experimental setup. T is the test surface and CCD is a
the (distorted) binary patterns M ki ðcosðθÞx0 þ digital camera.
First, to minimize the role of the surface reflectiv- median filter at a posterior stage), the reconstructed
ity, we acquire a normalization image, I 0 ðx0 ; y0 Þ, image is a high-quality image with unit contrast.
under homogeneous illumination (see Subsection 2.B In general, one has to acquire additional images to
above). perform 3-D profiling by applying a three- or four-
Second, we projected the sequence of eight binary frame PSI algorithm. In the present work, we chose
patterns shown in Fig. 1 (i ¼ 1; 2; …8) on the test sur- a phase step of π=2 rad. Thus, we repeated the fringe
face. The images acquired by the camera were nor- projection procedure using a shifted sequence
malized by I 0 ðx0 ; y0 Þ, and then binarized using fM 2i ðx; yÞg, which was obtained from fM 1i ðx; yÞg
Otsu’s thresholding method to generate the distorted [see Fig. 1 (i ¼ 1; 2; …8)] by shifting the fringes a
binary sequence fM 1i g, which is shown in Fig. 5 quarter-period along the x axis. (Of course, the pro-
(i ¼ 1; 2; …8). cedure can be generalized to a different phase-step
By means of Eq. (5), from the distorted fM 1i g one and to arbitrary numbers of frames.)
obtains a reconstructed gray-level image I 1 ðx0 ; y0 Þ, After normalizing and binarizing the images ac-
which is shown at the bottom (right corner) of quired by the camera, we achieved the (distorted)
Fig. 5. Despite a small amount of “salt and pepper” binary sequence fM 2i g shown in Fig. 6 (i ¼ 1; 2; …8).
noise (which can be easily filtered out by a 3 × 3 By using Eq. (5), from fM 2i g a reconstructed
gray-level image I 2 ðx0 ; y0 Þ is obtained, which is shown Finally, for comparison purposes, we projected on
at the bottom (right corner) of Fig. 6. the test surface a sequence of four “sinusoidal” pat-
Since the reconstructed images I 1 ðx0 ; y0 Þ and terns [similar to that shown in Fig. 3(a)] with a phase
I 2 ðx0 ; y0 Þ have unit contrast, in principle it would be shift of π=2 rad between consecutive patterns. We ac-
not necessary to acquire additional frames for re- quired the gray-level images with the camera and ap-
trieving the 3-D surface shape. From Eq. (5) it is clear plied a standard four-frame algorithm to reconstruct
that the 3-D profile will be given by the surface profile. (In this experiment, we did not
perform the binarization procedure.)
1 255 − 2I 2 ðx0 ; y0 Þ The reconstructed profile is shown in Figs. 7(c) and
z0 ðx0 ; y0 Þ ¼ arctan
2πf 0 sinðθÞ 2I 1 ðx0 ; y0 Þ − 255 7(d) (after unwrapping and filtering as before).
x0 The reconstructed surface profile is corrupt by a
− : ð7Þ spurious periodic undulation, which is clearly visible
tanðθÞ
in Figs. 7(c) and 7(d) as a periodic pattern of vertical
Different views of the reconstructed 3-D surface fringes superimposed to the smooth surface of
(after unwrapping and filtering) are shown in the mask. This kind of phase error is a character-
Figs. 7(a) and 7(b). istic feature due to the nonlinear response of the