Expand this Topic clickable element to expand a topic
Skip to content
Optica Publishing Group

Optical distortion evaluation based on the Integrated Colour CCD Moiré Method

Open Access Open Access

Abstract

Camera calibration is an important part of high-precision optical measurement, which is especially difficult in the micro-nano field. Based on the integrated correlation calculation and CCD moiré method, this paper describes the development of a lens calibration technique called the Integrated Colour CCD Moiré Method (ICCM). The CCD moiré fringes, formed by superimposing a periodic optical signal of a specimen grating with a CCD target array or a Bayer filter array, significantly enlarges the deformation modulated by lens distortion and the calibration plate attitude (i.e. the rotation angle relative to the camera coordinate system). To measure lens distortion using CCD moiré, the deformation pattern that is governed by the lens distortion, specimen grating attitude and carrier was used to construct a CCD fringe image. If the constructed CCD fringe image based on the trial lens distortion and rotation angles have a maximum similarity to the captured CCD moiré image, the lens distortion and rotation angles are correctly inversed. Particle swarm optimisation algorithm was selected to search for the true value so that the accuracy and robustness could be improved. Numerical experiments verified that the ICCM method developed in this work can simultaneously inverse the lens distortion, rotation angle and the grating pitch with high precision. The lens distortion of the metallographic microscope has been successfully characterised by the developed method with an 833 nm pitch grating. Simulations and experiments showed that ICCM is an intuitive, accurate, anti-noise and robust distortion calibration method.

© 2019 Optical Society of America under the terms of the OSA Open Access Publishing Agreement

1. Introduction

Non-contact optical testing techniques include the process of capturing images typically using a camera [13]. However, due to the imaging mechanism, some differences between the ideal geometric projection of the real object and the recorded image are produced [1,4]. The main source of error is lens distortion, which mainly includes radial distortion, eccentric distortion and thin prism aberration [5,6]. These system errors have a non-negligible effect on measurement results [1,2,7].

At present, lens distortion characterisation techniques are mainly divided into two categories [810]. One is based on the relationship of coordinate points as a constraint [8] and the other is based on the invariance of some properties before and after imaging [9,10]. The first method uses the correspondence between the three-dimensional coordinates of the points on the external calibration object and the two-dimensional coordinates of the corresponding points in the image captured by the camera to solve the camera parameters and lens distortion parameters. Weng used this method to obtain the parameters of radial distortion, eccentric distortion and thin prism aberration. Based on this principle, Zhang’s calibration method based on a checkerboard has been widely used [11]. Recently, Hild used the I-DIC method to characterise lens distortion using speckle images [1]. The above methods required the production of a calibration plate (a checkerboard or plate with a specific speckle pattern). The difficulty in making the calibration plate limits the application of the above methods in some fields, such as micro-nano measurement. By phase analysis of a cross-grating using a Fourier transform, the lens distortion of the scanning electron microscope was detected [12]. Using the regular grating structure, Hou [13] proposed a colour CCD moiré method [1416] to characterise lens distortion. In comparison with a checkerboard or speckle pattern, the micro-nano scale grating structure is easy to manufacture, such as with photoetching. Moreover, the CCD moiré method to characterise lens distortion is intuitive and sensitive. However, Hou's method requires pre-processing of the moiré image, which is not only cumbersome to operate, but also introduces displacement calculation errors. Therefore, in view of the shortcomings of Hou's method, this work developed a lens distortion calibration method called Integrated Colour CCD Moiré Method (ICCM).

This paper describes the development of a lens distortion characterisation method by combining integrated correlation calculation [17,18] with CCD moiré [16]. Firstly, based on the small hole imaging model and the lens distortion model, the ICCM model suitable for the distortion parameter inversion was derived. The grating pitch in pixel and rotation angles were measured simultaneously during the inversion process of the moiré image, which simplified the experimental operation and improved the accuracy of lens distortion calibration. The PSO algorithm was introduced into the ICCM solution process, which solved the problem of initial value estimation and the premature problem. Numerical experiments then demonstrated the feasibility and accuracy of this method. Finally, the lens distortion of the metallographic microscope was characterised by the ICCM method. Numerical simulations and application experiments indicated that the developed method had the advantages of easy operation and high precision, and is applicable to a wide-range of fields.

2. Principle of the ICCM Method for distortion evaluation

2.1 Distortion model using the colour CCD moiré method

The lens distortion can be visually revealed directly using the colour CCD moiré method [13]. The colour CCD moiré forming principle is illustrated in Fig. 1, where a periodic optical signal of the standard specimen grating and a Bayer filter array interfere with each other to form a moiré pattern when imaging [19].

 figure: Fig. 1.

Fig. 1. A schematic showing a colour CCD moiré forming process.

Download Full Size | PDF

The stripes of the moiré pattern were changed due to lens distortion. Generally, the displacement of the stripes caused by radial distortion, eccentric distortion and thin prism aberration can be expressed as [5]:

$${U_d}({x,\;y} )= [{k_1}y({{x^2} + {y^2}} )+ {k_2}y{({{x^2} + {y^2}} )^2}] + [2{p_2}xy + {p_1}(2{x^2} + 3{y^2})]\textrm{ + }{s_1}({x^2} + {y^2})$$
$${V_d}({x,\;y} )= [{k_1}x({{x^2} + {y^2}} )+ {k_2}x{({{x^2} + {y^2}} )^2}] + [2{p_1}xy + {p_2}(3{x^2} + 2{y^2})] + {s_2}({x^2} + {y^2})$$
where $({x,\;y} )$ is the point coordinates, ${k_1}$ and ${k_2}$ are the radial distortion coefficients, ${p_1}$ and ${p_2}$ are the tangential distortion coefficients and ${s_1}$ and ${s_2}$ are the prism distortion coefficients. The radial distortion coefficient ${k_1}$ determines most of the distortion. The origin of the image coordinate system in this work is assumed to be at the centre of the image.

However, for the CDD moiré method, the relative rotation angles between the specimen grating and the reference grating also introduce a virtual displacement field (Moiré deformation components which were not caused by lens distortion), as shown in Fig. 2. According to the pinhole imaging model, the virtual displacement field introduced by the rotation angles $({{\alpha_x},{\alpha_y},{\alpha_z}} )$ is derived as in Eq. (3):

$$\left\{ \begin{array}{l} U({x,\;y} )= \frac{{{f_i}({\cos {\alpha_y}\cos {\alpha_z} - \sin {\alpha_x}\sin {\alpha_y}\sin {\alpha_z}} )x + {f_i}\cos {\alpha_x}\sin {\alpha_z}y}}{{f - \cos {\alpha_x}\sin {\alpha_y}x - \sin {\alpha_x}y}} - x\\ V({{X_P},{Y_P}} )= \frac{{{f_i}({ - \cos {\alpha_y}\sin {\alpha_z} + \sin {\alpha_x}\sin {\alpha_y}\cos {\alpha_z}} )x + {f_i}\cos {\alpha_x}\cos {\alpha_z}{y_P}}}{{{f_i} - \cos {\alpha_x}\sin {\alpha_y}x - \sin {\alpha_x}y}} - y \end{array} \right.$$
where ${f_i}\textrm{ = }{f \mathord{\left/ {\vphantom {f k}} \right.} k}$, f is the focal length, and k is the pixel size. The derivation process is in Appendix A.

 figure: Fig. 2.

Fig. 2. An illustration of virtual displacement caused by rotation.

Download Full Size | PDF

For the moiré method, it is also necessary to consider the carrier field introduced by the mismatch between the specimen grating pitch and the reference grating pitch. The carrier field is given by Eqs. (4) and (5) [13]:

$${U_c}({x,\;y} )= {\mathop{\textrm {sgn}}} ({P_s} - {P_r})\frac{{{P_s} - {P_r}}}{{{P_r}}}x$$
$${V_c}({x,\;y} )= {\mathop{\textrm {sgn}}} ({P_s} - {P_r})\frac{{{P_s} - {P_r}}}{{{P_r}}}y$$
where ${P_s}$ is the specimen grating pitch in pixels, and ${P_r}$ is the reference grating pitch. For the colour moiré method using a Bayer filter array, ${P_r}\textrm{ = }2$ pixels.

Taking into account the factors above, the total displacement field of the moiré image can be written as given in Eqs. (6) and (7):

$$U(x,\;y) = {U_d}(x,\;y,\;K) + {U_r}(x,\;y,\;R) + {U_c}(x,\;y,\;{P_s})$$
$$V(x,\;y) = {V_d}(x,\;y,\;K) + {V_r}(x,\;y,\;R) + {V_c}(x,\;y,\;{P_s})$$
For:
$$K = \left[ {\begin{array}{{cccc}} {{k_1}}&{{k_2}}&{{p_1}}&{{p_2}} \end{array}} \right]$$
$$R = \left[ {\begin{array}{{ccc}} {{\alpha_x}}&{{\alpha_y}}&{{\alpha_z}} \end{array}} \right]$$
where ${U_d}$ and ${V_d}$ is the distortion, ${U_r}$ and ${V_r}$ is the rotation, and ${U_c}$ and ${V_c}$ is the carrier. This model can be used for characterising the lens distortion, rigid body rotation and the specimen grating pitch in pixels using the CCD moiré method. All parameters ($P = \left[ {\begin{array}{{ccc}} K&R&{{P_s}} \end{array}} \right]$) can be obtained by the least square method. But, this is complicated to operate and is susceptible to noise, because each moiré image needs to be processed for noise reduction, binarization, refinement, etc. The ICCM method can integrate parameter inversion into the process of the moiré image correlation calculation, which greatly reduces manual participation and improves accuracy.

2.2 ICCM model

The developed ICCM method integrated the inversion of distortion coefficients, the grating pitch in pixels, and rotation angles into the matching process of the moiré pattern, as shown in Fig. 3. First, a displacement field U was introduced on a constructed null matrix (image). U was constructed by an initial guess of ${P_s}$. Then, the displacement field U was converted into a moiré phase field M using Eq. (10) and the phase field M was drawn into a fringe pattern J. The correlation algorithm between J and the captured moiré I is solved by the optimisation algorithm. It should be noted that I should be translated into grayscale.

$${[{J({x,\;y} )} ]_{\textrm{image}}} = M({x,\;y} )= {\mathop{\textrm {Re}}\nolimits} ({{e^{{\raise0.7ex\hbox{${i2\pi U({x,\;y} )}$} \!\mathord{\left/ {\vphantom {{i2\pi U({x,\;y} )} {{P_r}}}} \right.}\!\lower0.7ex\hbox{${{P_r}}$}}}}} )$$
The robust Zero-Mean Normalised Sum of Squared Difference (ZNSSD) [3], seen in Eq. (11), was used as a correlation function to evaluate the similarity of moiré images. It can be seen from the correlation function that the parameter P, which makes C(P) close to 1, is the true value. This kind of question can be solved by optimisation algorithms, such as the Broyden–Fletcher–Goldfarb–Shanno (BFGS) method (a kind of Quasi-Newton method) [20,21], Particle Swarm Optimisation (PSO) [22,23], and Genetic Algorithms (GA) [24].
$$C(P )= \frac{{\sum\limits_{x,\;y \in \textrm{ROI}} {[{I({x,\;y} )- {I_m}} ][{J({x,\;y} )- {J_m}} ]} }}{{\sqrt {\sum\limits_{x,\;y \in \textrm{ROI}} {{{[{I({x,\;y} )- {I_m}} ]}^2}} } \sqrt {\sum\limits_{x,\;y \in \textrm{ROI}} {{{[{J({x,\;y} )- {J_m}} ]}^2}} } }}$$

 figure: Fig. 3.

Fig. 3. Flow chart.

Download Full Size | PDF

where, ${I_m}$ and ${J_m}$ are the mean intensity values of the two images, and ROI is the region of interest.

2.3 Particle swarm optimisation

In the traditional I-DIC method, a gradient-based algorithm is employed because this method converges quickly and the amount of calculation is small. However, in this work, it was found that the objective function (correlation function) C is a local multi-extreme value function, as shown in Fig. 4. In the case, where the grating pitch was changed and other parameters were constant, there was a local maximum next to the global maximum of the correlation coefficient. This local maximum will cause premature convergence when using a gradient-based algorithm. Therefore, in this work, the PSO algorithm was selected for the optimisation iteration.

 figure: Fig. 4.

Fig. 4. A graph showing the correlation coefficient varying with the specimen grating pitch.

Download Full Size | PDF

In traditional PSO, a set of particle swarms is first randomly initialised in the solution space, and then these particles search for the optimal solution by simulating bird foraging (iteration). The iteration formula is as follows [22]:

$$V_d^{t + 1} = \omega V_d^t + {c_1}{R_1}(\textrm{X}_d^{pb} - \textrm{X}_d^t) + {c_2}{R_2}(\textrm{X}_d^{gb} - \textrm{X}_d^t)$$
$$X_d^{t + 1} = X_d^t + V_d^{t + 1}$$
where, $d = 1,2, \sim ,D;$ D donates the population of the particle swarm; t donates the number of iterations;$\omega $ donates inertial weights, ${c_1}$ and ${c_2}$ donate the acceleration constants, ${R_1}$ and ${R_2}$ are random numbers between 0 and 1;$X_d^{pb}$ donates the best position of positionality during searching; and $X_d^{gb}$ donates the best position of the global population at that point. In this work, the parameter P donates the position. Through optimisation, the parameters ${p_b}(X_d^{gb})$ that achieve the best match between I and J can be found.

3. Numerical simulation

The feasibility and accuracy of this method were verified by numerical simulation. Considering radial distortion is the main part of lens distortion [25], the following discussion takes ${k_1}$ as the lens distortion coefficient. First, a simulated moiré image with specific information of lens distortion, rotation angle and carrier (${k_1}$, R and ${P_s}$) was generated according to Eqs. (6), (7) and (10), as shown in Fig. 5(a). Due to noise and light source effects in the experiment, noise and blur will exist in the actual acquired image, hence a certain amount of noise was added to the generated moiré image. The types of noise were Gaussian noise and blur. This image was then taken as a captured moiré and then parameters (${k_1}$, R and ${P_s}$) were inversed by the PSO optimisation algorithm. The simulation experiment included three types which considered the grating pitch, rotation angle and distortion coefficient respectively. The simulation results are shown in Tables 2 to 4 of Appendix B. As can be seen from those three tables, the inversion results showed a good performance for the method in accuracy and robustness. The maximum error was less than 1%.

 figure: Fig. 5.

Fig. 5. Anti-noise performance analysis showing (a) a simulated moiré with noise, (b) the image optimised by PSO, and (c), (d) and (e) the brightness distribution taken at the lines marked (1), (2), and (3). The blue plots in (c), (d), and (e) show the greyscale of the lines (${l_{a1}},{l_{a2}},{l_{a3}}$) shown in (a) whereas the red plots are the greyscale of the lines (${l_{b1}},{l_{b2}},{l_{b3}}$) shown in (b).

Download Full Size | PDF

The anti-noise performance of the method is also discussed. Data from Group A in Table 2 of Appendix B was selected, as shown in Fig. 5. In Fig. 5(a), salt and pepper noise and Gaussian blur are added to the three selection areas (rectangles, SA1-3) in Fig. 5(a) by Photoshop software. Salt and pepper noise can cause discontinuities in the moiré fringes, such as the selection rectangle 2 in Fig. 5(a), Gaussian blur will cause a local reduction of fringe modulation, such as the selection rectangle 3 in Fig. 5(a). Three regions were applied with different types of noise: noise and blur, noise, and blur. The inversed moiré image is shown in Fig. 5(b) which is very similar to Fig. 5(a). The blue lines in Figs. 5(c)–5(e) are the grey scales of the selected areas of the lines in Fig. 5(a), whereas the red lines are the grey scales of the same areas in Fig. 5(b). Comparing the grey distribution profiles of the three areas in the two images, it can be seen that areas affected by noise can be corrected by inversion. This indicates that this method had good noise resistance. It can be confirmed that the magnitude of the reference moiré and the background intensity do not affect the final phase inversion result.

4. Experiment: distortion inversion for a microscope lens

The difficulty of making the calibration plate limits the calibration of the microscope lens. In this work, the developed method was adopted to calibrate a metallographic microscope lens. The experimental setup is shown in Fig. 6. The magnification of the microscope lens is 80, the aperture is 0.8mm, and the mechanical tube length is 160mm. The resolution of the camera is 560 pixels*780 pixels.

 figure: Fig. 6.

Fig. 6. A photograph of the experimental setup.

Download Full Size | PDF

Since the magnification of the microscope is extremely high, it is necessary to use a grating with a high frequency. Here, a bidirectional diffraction grating of 1200 lines/mm was selected, as shown in Fig. 6. In order to further improve the accuracy of the calibration, a four-step phase shift method was introduced. The bidirectional diffraction grating was placed on a motorised translation stage that can be precisely adjusted. The accuracy of the stage was 6.25e-5 mm, while, for the 1200 lines/mm grating, the actual distance of the 1/4 phase is 2.1e-4 mm. The accuracy was sufficient to meet the requirements. Due to the bidirectional grating, bidirectional CCD moiré could be generated on the screen. By adjusting the filter and the illumination, the moiré in one direction can be made stronger and the other is weaker. Next, images of multiple phases could be obtained by controlling the translation stage (as shown in Fig. 7).

 figure: Fig. 7.

Fig. 7. Four-step phase shift images, (a) x direction and (b) y direction.

Download Full Size | PDF

Any direction of the images can invert all the required parameters. The following section took the experimental data in the x direction as an example. Images ${I_N}(x,\;y)$. (N = 1, 2, 3, 4) taken at each step can be expressed as:

$$\left\{ \begin{array}{l} {I_1}({x,\;y} )= B(x,\;y) + n(x,\;y)[{1 + \sin({2\pi fx + \Phi ({x,\;y} )} )} ]\\ {I_2}({x,\;y} )= B(x,\;y) + n(x,\;y)\left[ {1 + \sin\left( {2\pi fx + \Phi ({x,\;y} )+ \frac{\pi }{2}} \right)} \right]\\ {I_3}({x,\;y} )= B(x,\;y) + n(x,\;y)[{1 + \sin({2\pi fx + \Phi ({x,\;y} )+ \pi } )} ]\\ {I_4}({x,\;y} )= B(x,\;y) + n(x,\;y)\left[ {1 + \sin\left( {2\pi fx + \Phi ({x,\;y} )+ \frac{{3\pi }}{2}} \right)} \right] \end{array} \right.$$
where B(x,y) represents the background light intensity, n(x,y) is the surface reflectance of the object, f is the spatial frequency of the specimen grating, and Φ(x, y) represents the phase. For the actual measurement, it can be considered that B(x,y) and n(x, y) remain unchanged during the phase shift. Then:
$$[{2\pi fx + \Phi ({x,\;y} )} ]= {\tan ^{ - 1}}\frac{{{I_1}({x,\;y} )- {I_3}({x,\;y} )}}{{{I_2}({x,\;y} )- {I_4}({x,\;y} )}}$$
$$I({x,\;y} )\approx C\sin \left( {{{\tan }^{ - 1}}\frac{{{I_1}({x,\;y} )- {I_3}({x,\;y} )}}{{{I_2}({x,\;y} )- {I_4}({x,\;y} )}}} \right) + D$$
where C is the amplitude and D is the background light intensity. According to the numerical simulation results, C and D do not affect the phase of the moiré and do not interfere with the inversion. It can be assumed that C = D = 128.

I, calculated from Eq. (16), was selected as the captured moiré and the distortion coefficient, the rotation angle and the specimen grating pitch can be inversed by this method, as shown in the Table 1. The decoupled displacement fields are shown in Fig. 8. The image scale was 2.34e-4 mm/pixel and the maximum distortion displacement was about 30 pixels. It can be seen from Fig. 8 that most of the displacement was caused by the carrier field, which was two orders of magnitude greater than the other two. The displacements caused by the rotation and distortion are of the same order of magnitude. Therefore, if the carrier field and rotation were not considered, it is hence difficult to accurately measure the distortion coefficient of the microscope lens. The residual field between the phase analysis and inversion is shown in the Fig. 9. It can be seen that the absolute value of most residuals was less than 3e-4 mm. In the upper right corner of the image, the residual was relatively large, and the residual maximum was less than 1.5e-3 mm.

 figure: Fig. 8.

Fig. 8. Decoupled displacement, (a) carrier, (b) rotation and (c) distortion.

Download Full Size | PDF

 figure: Fig. 9.

Fig. 9. Relative errors of the displacement between the phase analyzing results and inversion results.

Download Full Size | PDF

Tables Icon

Table 1. The internal and external parameters of the microscope lens

Using a standard ruler, an estimated value of the specimen grating pitch can be measured. As shown in Fig. 10, the number of pixels corresponding to 12 small scales (0.01mm/scale) was read. The measured specimen grating pitch ${P_s}^{\prime}$ can be calculated from the Eq. (17). The relative error of the pitch was 0.6%, which further proved the accuracy of this method.

$${P_s}^{\prime} = \frac{{{P_r}N}}{L} = \frac{{({1/1200} )\times 518}}{{12 \times 0.01}} = 3.597pixel\textrm{s}$$
The distortion calibration of the microscope head has been successfully achieved by means of a high-frequency grating and a precise electric translation stage. The grating used in this work [26,27] is easy to fabricate compared to the calibration method using the chessboard. Compared with the method using speckle or gratings [12], the distortion can be measured with higher precision, because the moiré and the phase shifting algorithm are applied to obtain the deformation information and the influence of the rotation is considered.

 figure: Fig. 10.

Fig. 10. A photograph showing the metallographic microscope special ruler.

Download Full Size | PDF

5. Conclusions

This paper describes the development of a characterisation method of lens distortion based on integrated correlation calculation and CCD moiré. By integrating the moiré process into the image correlation calculation, multiple parameters, including the lens distortion coefficient, can be solved simultaneously. The premature problem can be solved by introducing the PSO algorithm. Numerical experiments verified the feasibility and anti-noise performance of the method and the distortion of the microscope lens was successfully measured using a diffraction grid of high frequency and a motorized translation stage of high accuracy. The advantages of the improved method are as follows:

  • 1. Highly sensitive and accurate. It is well-known that the displacement measurement sensitivity of the geometric moiré method depends on the pitch of the grating, and thus the smaller the reference grating pitch the higher the measurement sensitivity. Owing to the full use of the CCD camera resolution limit for selecting CCD target surface imaging units as reference gratings, the ICCM method has a high sensitivity and accuracy for distortion measurement.
  • 2. Efficient. The developed ICCM method can obtain the rotation angle, the grating pitch in pixels, and the distortion coefficient simultaneously. It has simplified the process of dealing with moiré and reduced manual participation.
  • 3. Robust. The PSO algorithm was adopted to solve the initial value estimation and premature problem, which improved the accuracy of the inversion results. The integrated algorithm for the moiré image was good for noise immunity.
  • 4. Wide range of applications. The CCD moiré method has the advantage of having an easily manufactured calibration board, especially in the field of micro-nano measurements.

Appendix A

This part mainly introduces the derivation process of Eq. (3). First, the world coordinate system ${O_w} - {x_w}{y_w}{z_w}$ and the specimen coordinate system ${O_s} - {x_s}{y_s}{z_s}$ are defined. The origin ${O_w}$ of the world coordinate system is the centre of the lens, and the ${x_w}$-axis and the ${y_w}$-axis are respectively parallel to the two axes of the camera target surface, and the ${z_w}$-axis is parallel to the camera optical axis. The origin ${O_s}$ of the specimen coordinate system is the point on the test piece corresponding to the centre of the image. The ${x_s}$-axis is parallel to the normal of the grating, the ${y_s}$-axis is parallel to the grating, and the ${z_s}$-axis is parallel to the normal of the specimen’s surface. The relative rotation angle refers to the angle between the two coordinate systems. According to the pinhole imaging model, we know that the presence of the rotation angle will introduce a virtual displacement into the moiré. The usual practice is to adjust the two coordinate systems to coincide by the device. But this operation was complex. In order to simplify this step, we derived the virtual displacement formula caused by the rotation angle through the pinhole imaging model.

It is assumed that there is a point on the specimen, and its coordinates in the world coordinate system were $({X_w},{Y_w},0)$. Before rotation (the two coordinate systems are coincided), its image coordinates were $(x,\;y)$. After rotation, its image coordinates were $(x^{\prime},\;y^{\prime})$. $({\alpha _x},{\alpha _y},{\alpha _z})$ are the rotation angles. According to pinhole camera model, the coordinate transformation relationship can be obtained, as Eqs. (18) and (19).

$${Z_C}\left[ {\begin{array}{{c}} x\\ y\\ 1 \end{array}} \right] = \left[ {\begin{array}{{cccc}} {\frac{f}{{dx}}}&0&{{u_0}}&0\\ 0&{\frac{f}{{dy}}}&{{v_0}}&0\\ 0&0&1&0 \end{array}} \right]\left[ {\begin{array}{{cccc}} 1&0&0&{{T_x}}\\ 0&1&0&{{T_y}}\\ 0&0&1&{{T_z}}\\ 0&0&0&1 \end{array}} \right]\left[ {\begin{array}{{c}} {{X_W}}\\ {{Y_W}}\\ 0\\ 1 \end{array}} \right]$$
$${Z_C}\left[ {\begin{array}{{c}} {x^{\prime}}\\ {y^{\prime}}\\ 1 \end{array}} \right] = \left[ {\begin{array}{{cccc}} {\frac{f}{{dx}}}&0&{{u_0}}&0\\ 0&{\frac{f}{{dy}}}&{{v_0}}&0\\ 0&0&1&0 \end{array}} \right]\left[ {\begin{array}{{cccc}} {{R_{11}}}&{{R_{12}}}&{{R_{13}}}&{{T_x}}\\ {{R_{21}}}&{{R_{22}}}&{{R_{23}}}&{{T_y}}\\ {{R_{31}}}&{{R_{32}}}&{{R_{33}}}&{{T_z}}\\ 0&0&0&1 \end{array}} \right]\left[ {\begin{array}{{c}} {{X_W}}\\ {{Y_W}}\\ 0\\ 1 \end{array}} \right]$$
Where ${Z_C}$ represents the image distance, f represents the focal length, dx and dy represents the physical size of the pixel, $({u_0},{v_0})$ represents the pixel coordinate of the intersection of the optical axis and the camera target surface, ${R_{ij}}$ represents the rotation matrix component, and ${T_i}$ represents the translational component.

In order to facilitate the solution, here is some simplification. It is assumed that the intersection of the camera optical axis and the target surface is at the centre of the image, and the rotation axis passes through the centre of the image. Thus, ${u_0} = {v_0} = 0$, ${T_x} = {T_y} = 0$, ${T_z} = {Z_C}$. Ignoring the difference in pixel size in the x, y direction, it can be assumed that $k = dx = dy$ and ${f_i} = {f \mathord{\left/ {\vphantom {f k}} \right.} k}$. The value of ${R_{ij}}$ is determined by $({\alpha _x},{\alpha _y},{\alpha _z})$. According to the above description of the parameters and Eqs. (18) and (19), it can be derived:

$$\left\{ \begin{array}{l} U({x,\;y} )= x^{\prime} - x = \frac{{{f_i}({\cos {\alpha_y}\cos {\alpha_z} - \sin {\alpha_x}\sin {\alpha_y}\sin {\alpha_z}} )x + {f_i}\cos {\alpha_x}\sin {\alpha_z}y}}{{{f_i} - \cos {\alpha_x}\sin {\alpha_y}x - \sin {\alpha_x}y}} - x\\ V({x,\;y} )= y^{\prime} - y = \frac{{{f_i}({ - \cos {\alpha_y}\sin {\alpha_z} + \sin {\alpha_x}\sin {\alpha_y}\cos {\alpha_z}} )x + {f_i}\cos {\alpha_x}\cos {\alpha_z}y}}{{{f_i} - \cos {\alpha_x}\sin {\alpha_y}x - \sin {\alpha_x}y}} - y \end{array} \right.$$

Appendix B

The numerical simulation experimental conditions in Table 2 were that ${k_1}$. and ${\alpha _i}(i = x,\;y,\;z)$ were unchanged, and only ${P_S}$ was changed. The numerical simulation experimental conditions in Table 3 were that ${k_1}$ and ${P_S}$ were unchanged, and only ${\alpha _i}$ was changed. The numerical simulation experimental conditions in Table 4 were that ${P_S}$ and ${\alpha _i}$ were unchanged, and only ${k_1}$ was changed. Reference values of the unchanged parameters are listed in the last row of the table whereas reference values of the changed parameters are listed in the first column of the table.

Tables Icon

Table 2. Numerical simulation experimental results for different values of ${\textrm{P}_\textrm{s}}$

Tables Icon

Table 3. Numerical simulation experimental results for different values of ${{\alpha }_\textrm{i}}$

Tables Icon

Table 4. Numerical simulation experimental results for different values of ${\textrm{k}_1}$

Funding

National Key R&D Program of China (2017YFB1103900); National Natural Science Foundation of China (11572041, 11972084); National Major Science and Technology Projects of China (2017-VI-0003-0073); Beijing Natural Science Foundation (1192014).

Acknowledgments

The authors are grateful to all of those who were involved in this work.

Disclosures

The authors declare no conflicts of interest.

References

1. J.-E. Dufour, F. Hild, and S. Roux, “Integrated digital image correlation for the evaluation and correction of optical distortions,” Opt. Lasers Eng. 56, 121–133 (2014). [CrossRef]  

2. B. Pan, L. Yu, J. Yuan, Z. Shen, and G. Tang, “Determination of Viscoelastic Poisson’s Ratio of Solid Propellants using an Accuracy-enhanced 2D Digital Image Correlation Technique,” Propellants, Explos., Pyrotech. 40(6), 821–830 (2015). [CrossRef]  

3. B. Pan, “Digital image correlation for surface deformation measurement: historical developments, recent advances and future goals,” Meas. Sci. Technol. 29(8), 082001 (2018). [CrossRef]  

4. N. T. Vo, R. C. Atwood, and M. Drakopoulos, “Radial lens distortion correction with sub-pixel accuracy for X-ray micro-tomography,” Opt. Express 23(25), 32859–32868 (2015). [CrossRef]  

5. J. Zhao, Z. Liu, and B. Guo, “Three-dimensional digital image correlation method based on a light field camera,” Opt. Lasers Eng. 116, 19–25 (2019). [CrossRef]  

6. Z. Gao, Q. Zhang, Y. Su, and S. Wu, “Accuracy evaluation of optical distortion calibration by digital image correlation,” Opt. Lasers Eng. 98, 143–152 (2017). [CrossRef]  

7. A. Gonzalez and J. Meneses, “Accurate calibration method for a fringe projection system by projecting an adaptive fringe pattern,” Appl. Opt. 58(17), 4610–4615 (2019). [CrossRef]  

8. C. S. Fraser, “Digital camera self-calibration,” ISPRS J. Photogramm. Remote Sens. 52(4), 149–159 (1997). [CrossRef]  

9. R. I. Hartley, “Theory and practice of projective rectification,” Int. J. Comput. Vis. 35(2), 115–127 (1999). [CrossRef]  

10. Q. Dai, R. Xiong, and S. Li, “An Optimization Based Vision Calibration Method for PTZ Camera's Errors in Model and Execution,” Procedia Eng. 15, 585–593 (2011). [CrossRef]  

11. Z. Zhang, “A flexible new technique for camera calibration,” IEEE Trans. Pattern Anal. Mach. Intell. 22(11), 1330–1334 (2000). [CrossRef]  

12. P. Jin and X. Li, “Correction of image drift and distortion in a scanning electron microscopy,” J. Microsc. 260(3), 268–280 (2015). [CrossRef]  

13. Y. Hou, H. Zhang, J. Zhao, J. He, H. Qi, Z. Liu, and B. Guo, “Camera lens distortion evaluation and correction technique based on a colour CCD moiré method,” Opt. Lasers Eng. 110, 211–219 (2018). [CrossRef]  

14. Y. Kim, G. Park, J.-H. Jung, J. Kim, and B. Lee, “Color moiré pattern simulation and analysis in three-dimensional integral imaging for finding the moiré-reduced tilted angle of a lens array,” Appl. Opt. 48(11), 2178–2187 (2009). [CrossRef]  

15. V. Saveljev and S.-K. Kim, “Simulation and measurement of moiré patterns at finite distance,” Opt. Express 20(3), 2163–2177 (2012). [CrossRef]  

16. H. Zhang, C. Wu, Z. Liu, and H. Xie, “A curved surface micro-moiré method and its application in evaluating curved surface residual stress,” Meas. Sci. Technol. 25(9), 095002 (2014). [CrossRef]  

17. L. Zhanwei and G. Jianxin, “Deformation-pattern-based digital speckle correlation for coefficient of thermal expansion evaluation of film,” Opt. Express 19(18), 17469–17479 (2011). [CrossRef]  

18. J. Dong, Z. Liu, and J. Gao, “Multi-Parameter Inversion and Thermo-Mechanical Deformation Decoupling using I-DIC,” Exp. Mech. 57(1), 31–39 (2017). [CrossRef]  

19. L. Junfei, Z. Youqi, W. Jianglong, X. Yang, W. Zhipei, M. Qinwei, and M. Shaopeng, “Formation mechanism and a universal period formula for the CCD moiré,” Opt. Express 22(17), 20914–20923 (2014). [CrossRef]  

20. T. S. Smith, B. K. Bay, and M. M. Rashid, “Digital volume correlation including rotational degrees of freedom during minimization,” Exp. Mech. 42(3), 272–278 (2002). [CrossRef]  

21. E. Verhulp, B. van Rietbergen, and R. Huiskes, “A three-dimensional digital image correlation technique for strain measurements in microstructures,” J. Biomech. 37(9), 1313–1320 (2004). [CrossRef]  

22. M. M. Noel, “A new gradient based particle swarm optimization algorithm for accurate computation of global minimum,” Appl. Soft. Comput. 12(1), 353–359 (2012). [CrossRef]  

23. M. Jenkinson and S. Smith, “A global optimisation method for robust affine registration of brain images,” Med. Image Anal. 5(2), 143–156 (2001). [CrossRef]  

24. E. Ergun, S. Tasgetiren, and M. Topcu, “Determination of SIF for patched crack in aluminum plates by the combined finite element and genetic algorithm approach,” Fatigue Fract. Eng. Mater. Struct. 31(11), 929–936 (2008). [CrossRef]  

25. S. Yoneyama, H. Kikuta, A. Kitagawa, and K. Kitamura, “Lens distortion correction for digital image correlation by measuring rigid body displacement,” Opt. Eng. 45(2), 023602 (2006). [CrossRef]  

26. X. Dai and H. Xie, “A simple and residual-layer-free solute–solvent separation soft lithography method,” J. Micromech. Microeng. 25(9), 095013 (2015). [CrossRef]  

27. X. Dai and H. Xie, “Versatile specimen-grating fabrication technique for moiré method based on solute-solvent separation soft lithography,” Opt. Mater. Express 6(5), 1530–1544 (2016). [CrossRef]  

Cited By

Optica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.

Alert me when this article is cited.


Figures (10)

Fig. 1.
Fig. 1. A schematic showing a colour CCD moiré forming process.
Fig. 2.
Fig. 2. An illustration of virtual displacement caused by rotation.
Fig. 3.
Fig. 3. Flow chart.
Fig. 4.
Fig. 4. A graph showing the correlation coefficient varying with the specimen grating pitch.
Fig. 5.
Fig. 5. Anti-noise performance analysis showing (a) a simulated moiré with noise, (b) the image optimised by PSO, and (c), (d) and (e) the brightness distribution taken at the lines marked (1), (2), and (3). The blue plots in (c), (d), and (e) show the greyscale of the lines (${l_{a1}},{l_{a2}},{l_{a3}}$) shown in (a) whereas the red plots are the greyscale of the lines (${l_{b1}},{l_{b2}},{l_{b3}}$) shown in (b).
Fig. 6.
Fig. 6. A photograph of the experimental setup.
Fig. 7.
Fig. 7. Four-step phase shift images, (a) x direction and (b) y direction.
Fig. 8.
Fig. 8. Decoupled displacement, (a) carrier, (b) rotation and (c) distortion.
Fig. 9.
Fig. 9. Relative errors of the displacement between the phase analyzing results and inversion results.
Fig. 10.
Fig. 10. A photograph showing the metallographic microscope special ruler.

Tables (4)

Tables Icon

Table 1. The internal and external parameters of the microscope lens

Tables Icon

Table 2. Numerical simulation experimental results for different values of P s

Tables Icon

Table 3. Numerical simulation experimental results for different values of α i

Tables Icon

Table 4. Numerical simulation experimental results for different values of k 1

Equations (20)

Equations on this page are rendered with MathJax. Learn more.

U d ( x , y ) = [ k 1 y ( x 2 + y 2 ) + k 2 y ( x 2 + y 2 ) 2 ] + [ 2 p 2 x y + p 1 ( 2 x 2 + 3 y 2 ) ]  +  s 1 ( x 2 + y 2 )
V d ( x , y ) = [ k 1 x ( x 2 + y 2 ) + k 2 x ( x 2 + y 2 ) 2 ] + [ 2 p 1 x y + p 2 ( 3 x 2 + 2 y 2 ) ] + s 2 ( x 2 + y 2 )
{ U ( x , y ) = f i ( cos α y cos α z sin α x sin α y sin α z ) x + f i cos α x sin α z y f cos α x sin α y x sin α x y x V ( X P , Y P ) = f i ( cos α y sin α z + sin α x sin α y cos α z ) x + f i cos α x cos α z y P f i cos α x sin α y x sin α x y y
U c ( x , y ) = sgn ( P s P r ) P s P r P r x
V c ( x , y ) = sgn ( P s P r ) P s P r P r y
U ( x , y ) = U d ( x , y , K ) + U r ( x , y , R ) + U c ( x , y , P s )
V ( x , y ) = V d ( x , y , K ) + V r ( x , y , R ) + V c ( x , y , P s )
K = [ k 1 k 2 p 1 p 2 ]
R = [ α x α y α z ]
[ J ( x , y ) ] image = M ( x , y ) = Re ( e i 2 π U ( x , y ) / i 2 π U ( x , y ) P r P r )
C ( P ) = x , y ROI [ I ( x , y ) I m ] [ J ( x , y ) J m ] x , y ROI [ I ( x , y ) I m ] 2 x , y ROI [ J ( x , y ) J m ] 2
V d t + 1 = ω V d t + c 1 R 1 ( X d p b X d t ) + c 2 R 2 ( X d g b X d t )
X d t + 1 = X d t + V d t + 1
{ I 1 ( x , y ) = B ( x , y ) + n ( x , y ) [ 1 + sin ( 2 π f x + Φ ( x , y ) ) ] I 2 ( x , y ) = B ( x , y ) + n ( x , y ) [ 1 + sin ( 2 π f x + Φ ( x , y ) + π 2 ) ] I 3 ( x , y ) = B ( x , y ) + n ( x , y ) [ 1 + sin ( 2 π f x + Φ ( x , y ) + π ) ] I 4 ( x , y ) = B ( x , y ) + n ( x , y ) [ 1 + sin ( 2 π f x + Φ ( x , y ) + 3 π 2 ) ]
[ 2 π f x + Φ ( x , y ) ] = tan 1 I 1 ( x , y ) I 3 ( x , y ) I 2 ( x , y ) I 4 ( x , y )
I ( x , y ) C sin ( tan 1 I 1 ( x , y ) I 3 ( x , y ) I 2 ( x , y ) I 4 ( x , y ) ) + D
P s = P r N L = ( 1 / 1200 ) × 518 12 × 0.01 = 3.597 p i x e l s
Z C [ x y 1 ] = [ f d x 0 u 0 0 0 f d y v 0 0 0 0 1 0 ] [ 1 0 0 T x 0 1 0 T y 0 0 1 T z 0 0 0 1 ] [ X W Y W 0 1 ]
Z C [ x y 1 ] = [ f d x 0 u 0 0 0 f d y v 0 0 0 0 1 0 ] [ R 11 R 12 R 13 T x R 21 R 22 R 23 T y R 31 R 32 R 33 T z 0 0 0 1 ] [ X W Y W 0 1 ]
{ U ( x , y ) = x x = f i ( cos α y cos α z sin α x sin α y sin α z ) x + f i cos α x sin α z y f i cos α x sin α y x sin α x y x V ( x , y ) = y y = f i ( cos α y sin α z + sin α x sin α y cos α z ) x + f i cos α x cos α z y f i cos α x sin α y x sin α x y y
Select as filters


Select Topics Cancel
© Copyright 2024 | Optica Publishing Group. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.