1 Introduction

Moiré tomography has become an efficient and important tool in various fields since it was first purposed by O. Kafri [1], because it meets an increasing need for real-time visualization and quantitative measurement of phase objects [2,3,4]. Up to now, it has been used to diagnose various flow fields, such as flames [2, 5, 6], plasmas [7,8,9], and supersonic jet flows [4, 10]. In some rare fields, moiré tomography is also effective, including quantifying the scapular motions relative to the thorax [11], improving the measurement accuracy of multi-LSIs [12], and so on. In summary, for the various measuring objects above, one of the key parameters—phase information which is the basis of subsequent data reconstruction, should be initially focused on.

Up to now, apart from some methods like windowed Fourier transform [13, 14], 2D wavelet transform [15], etc., there are mainly three methods to extract moiré fringes information: the fringe tracking method based on image intensity [16, 17], the Fourier transform method [18,19,20] and the phase-shifting method [21]. The fringe tracking method uses point-by-point tracking to process the fringe pattern, so it is sensitive to the noise in the image [22]. When there are distortion points in the fringe pattern, the measurement error becomes big, even the measurement result will be wrong, which means fringe tracking method obviously cannot meet the needs of high-precision measurement. Fourier transform and phase-shifting methods can get the whole image information by reconstructing the image phase distribution, and reduce the influence of image defects on the information extraction. Phase-shifting method requires that the measured object keeps steady during the recording process, which requires high mechanical stability of the optical path and the flow field [23]. Although related studies have been used to improve the anti-vibration performance of the phase-shifting method [24, 25], factors such as thermal disturbance of the field still make it unstable in a state. For Fourier transform method, the traditional experimental device can meet its requirements and it can extract the phase information of the entire fringe pattern at one time [20], so it has become the most used method. Although the Fourier transform method has high measurement accuracy, the 2D wavelet transform algorithm has advantages over the Fourier transform method in terms of noise reduction, since the Fourier transform method acts as a global transform of the fringe pattern. [26]. Therefore, maybe the Gabor wavelet transform method could be introduced to extract the phase information of moiré fringes. Previously, the Gabor wavelet transform method has been successfully applied to fringes’ phase information extraction in interferometry. For example, Yao Wei applied Gabor wavelet transform to interferogram phase demodulation [27], and J Bethge utilized it to extract phase information in spectral interferometry [28]. However, nobody has tried to use Gabor wavelet transform to extract the phase information of moiré fringes, which will be realized in this study.

In this paper, Gabor wavelet transform is used to extract phase distribution of moiré fringes. The filtering property of Gabor wavelet transform is analyzed, and the phase of moiré fringes is deduced with Gabor wavelet transform. The process of choosing light intensity and deriving the phase is described as well. Then the detail of experiment set-up and its result are introduced. While in the next part, the phase information is successfully extracted with Gabor wavelet transform whose result is compared with that of Fourier transform. Finally, phase information is discussed and analyzed.

2 Theory and derivation

2.1 Moiré fringe intensity distribution selection

The moiré fringes can be seen as the result of multi-shearing interference [29]. Thus, compared with the zero-order filtering, the first-order filter which consists of only two major frequency spectra is more accurate. The frequency spectra of the first-order filter meet \(m + n = 1\) or \(m + n = - 1\), where \(m\) and \(n\) mean the diffraction orders of the two gratings, respectively. The only difference between the two cases is the sign of phase value, which has no impact on result. In this letter, the case \(m + n = 1\) is used to figure out the phase information.

2.2 Phase deduction

When the distance between the two gratings equals to the Talbot distance, the light intensity distribution of + 1 filter is described as [29]:

$$I(x,y) = 2a_{0}^{2} a_{1}^{2} + 2a_{0}^{2} a_{1}^{2} \cos \left[ {\frac{4\pi }{d}y\sin \frac{\alpha }{2} + \phi (x,y)} \right],$$
(1)

where \(a_{0}\) and \(a_{1}\) are the coefficients of the first two terms of Taylor expansion, respectively, \(\frac{\alpha }{2}\) is the angle between the grating and the y-axis, \(\phi (x,y)\) is the phase.

Removing the direct current component, \({{4\pi \sin \left( {\alpha /2} \right)} \mathord{\left/ {\vphantom {{4\pi \sin \left( {\alpha /2} \right)} d}} \right. \kern-\nulldelimiterspace} d}\) is set as \(f\), so Eq. (1) could be simplified like:

$$I\left( {x,y} \right) = 2a_{0}^{2} a_{1}^{2} \cos \left[ {fy + \phi \left( {x,y} \right)} \right],$$
(2)

Moreover, Eq. (2) could be written as:

$$I\left( {x,y} \right) = 2a_{0}^{2} a_{1}^{2} \left[ {c\left( {x,y} \right)\cos \left( {fy} \right) + s\left( {x,y} \right)\sin \left( {fy} \right)} \right],$$
(3)

where \(c\left( {x,y} \right)\) and \(s\left( {x,y} \right)\) are intermediate quantities set-up for the convenience of calculation, and they meet:

$$c^{2} \left( {x,y} \right) + s^{2} \left( {x,y} \right) = 1,$$
(4)
$$\phi \left( {x,y} \right) = - \tan^{ - 1} \left[ {\frac{{s\left( {x,y} \right)}}{{c\left( {x,y} \right)}}} \right]{\kern 1pt} .$$
(5)

According to Ref. [30], 2D Gabor wavelet transform to moiré fringes intensity distribution should be expressed as:

$$G_{mn} \left[ {I\left( {x,y} \right)} \right] = h_{mn} \left( {x,y} \right) * I(x,y),$$
(6)

where the symbol * represents a convolution of \(h_{mn} \left( {x,y} \right)\) and \(I\left( {x,y} \right)\), while \(h_{mn} \left( {x,y} \right)\) means Gabor wavelet function as [27]:

$$h_{mn} (x,y) = g(x,y)\exp \left[ {2\pi j\left( {U_{m} x + V_{n} y} \right)} \right],$$
(7)
$$g\left( {x,y} \right) = \left( {\frac{1}{{2\pi \lambda \sigma^{2} }}} \right)\exp \left[ { - \frac{{\left( {x/\lambda } \right)^{2} + y^{2} }}{{2\sigma^{2} }}} \right],$$
(8)

where \(\sigma\) is scale factor, and \(\lambda\) represents the sine function wavelength.

In further, \(h_{mn} \left( {x,y} \right)\) can be seen as a band-pass filter whose central frequency is \(\left( {U_{m} ,V_{n} } \right)\), so it can be viewed as that the image is filtered by a channel Gabor filter with a central frequency of \(\left( {0,f} \right)\). According to Euler formula, \(h_{mn} \left( {x,y} \right)\) could be divided into real (\(h_{r} \left( {x,y} \right)\)) and imaginary (\(h_{i} \left( {x,y} \right)\)) parts, which is defined by:

$$\begin{array}{*{20}c} {h_{r} \left( {x,y} \right) = g\left( {x,y} \right)\cos \left( {fy} \right),} \\ {h_{i} \left( {x,y} \right) = g\left( {x,y} \right)\sin \left( {fy} \right).} \\ \end{array}$$
(9)

Furthermore, \(h_{r} \left( {x,y} \right)\) and \(h_{i} \left( {x,y} \right)\) are applied to \(I(x,y)\) by Gabor wavelet transform, which means doing convolution to the real and imaginary parts separately, we can have:

$$G_{{\left( {0,f} \right)}} \left[ {I\left( {x,y} \right)} \right] = k_{r} \left( {x,y} \right) + jk_{i} \left( {x,y} \right).$$
(10)

where \(k_{r} \left( {x,y} \right) = h_{r} \left( {x,y} \right) * I\left( {x,y} \right)\), and \(k_{i} \left( {x,y} \right) = h_{i} \left( {x,y} \right) * I\left( {x,y} \right)\).

Thus, the phase of \(G_{{\left( {0,f} \right)}} \left[ {I\left( {x,y} \right)} \right]\) should be:

$$\varphi \left( {x,y} \right) = \tan^{ - 1} \left[ {\frac{{k_{i} \left( {x,y} \right)}}{{k_{r} \left( {x,y} \right)}}} \right] = fy - \tan^{ - 1} \left[ {\frac{{g\left( {x,y} \right) * s\left( {x,y} \right)}}{{g\left( {x,y} \right) * c\left( {x,y} \right)}}} \right].$$
(11)

As a result of that \(\phi \left( {x,y} \right)\) has the characteristics of the low frequency and narrow-band, as long as the spatial scale chosen for \(g\left( {x,y} \right)\) is small enough and should be broad enough to include \(\phi \left( {x,y} \right)\), \(\phi \left( {x,y} \right)\) can be considered to be a constant within the spatial span of \(g\left( {x,y} \right)\). Therefore, \(c\left( {x,y} \right)\) and \(s\left( {x,y} \right)\) can also be seen as constants. Based on these conditions above, an approximation is given as:

$$\frac{{g\left( {x,y} \right) * s\left( {x,y} \right)}}{{g\left( {x,y} \right) * c\left( {x,y} \right)}} \approx \frac{{s\left( {x,y} \right)}}{{c\left( {x,y} \right)}}.$$
(12)

Finally, integrating Eq. (5), Eq. (11) and Eq. (12), the phase distribution \(\phi \left( {x,y} \right)\) can be calculated by:

$$\phi \left( {x,y} \right) \approx \tan^{ - 1} \left[ {\frac{{k_{i} \left( {x,y} \right)}}{{k_{r} \left( {x,y} \right)}}} \right] - fy.$$
(13)

The same result can be obtained with the moiré fringes under -1 filter.

3 Experiment and results

3.1 Experimental set-up

Figure 1 is the schematic diagram of moiré deflectometry. In this study, the wavelength of the laser used is 532 nm. The little lens 2 with the focal length of 3 mm and the large lens 3 with the focal length of 30 cm constitute a beam expanding and collimating system, and the diameter of lens 3 is 5 cm. 5 and 6 are two identical Ronchi gratings, with an effective size of \(50\;{\text{mm}} \times 50\;{\text{mm}}\), they are set with a distance \(\Delta\) apart and oriented at angles \({\alpha \mathord{\left/ {\vphantom {\alpha 2}} \right. \kern-\nulldelimiterspace} 2}\) and \(- {\alpha \mathord{\left/ {\vphantom {\alpha 2}} \right. \kern-\nulldelimiterspace} 2}\) relative to the y-axis, respectively. To obtain the moiré fringes with good contrast, the distance between the two gratings should be the integer multiple of Talbot distance. The imaging lens 7 is the same as the imaging lens 9, and has a diameter and a focal length of 75 mm and 300 mm, respectively. From the back surface of the second grating to the screen is a typical 4-f system. Finally, a CCD is used to obtain moiré fringes.

Fig. 1
figure 1

Schematic diagram of moiré deflectometry. 1—laser, 2, 3—beam expanding collimation system, 4—phase object, 5, 6—Ronchi grating, 7, 9—imaging lens, 8—filter aperture, 10—screen

3.2 Experimental results

In flow fields moiré tomography diagnosis, species composition [31] and flow velocity of jet flow [32] could affect finally results. Therefore, three flow fields are chosen for experiment.

3.2.1 Electric iron

Figure 2 shows the moiré fringes of the flow field around electric iron. The feature of the flow field around electric iron is that when it is heated, there is no chemistry reaction and that the effect of flow velocity can be ignored.

Fig. 2
figure 2

Moiré fringes of electric iron: a unheated, b heated

3.2.2 Candle-air flame

Figure 3 shows the moiré fringes of candle burning silently in the air, thus the flow velocity can be ignored. But unlike the flow field around electric iron, there is chemistry reaction of the candle-air flame.

Fig. 3
figure 3

Moiré fringes of candle-air flame: a unburned, b burning

3.2.3 Propane-air flame

The moiré fringes of propane-air flame are given in Fig. 4. Different from both flow fields above, there exists chemistry reaction and the flow velocity is bigger in this case.

Fig. 4
figure 4

Moiré fringes of propane-air flame: a unburned, b burning

4 Phase extraction

4.1 Result of Phase Extraction

The following processing is based on the pre-processing that the moiré fringes image is cut into a 320*320 pixel size. And, the multi-grid method [33] is used to unwrap the phase in this study. Finally, the unwrapped phase information distributions of the three measured flow fields are shown in Figs. 5, 6, 7, and the results based on Fourier transform are also supplied for comparison.

Fig. 5
figure 5

Phase information of electric iron: a Gabor wavelet transform with kernel size = 30 and \(\sigma { = 8}\), b Fourier transform

Fig. 6
figure 6

Phase information of candle-air flame: a Gabor wavelet transform with kernel size = 50 and \(\sigma { = 8}\), b Fourier transform

Fig. 7
figure 7

Phase information of propane-air flame. a Gabor wavelet transform with kernel size = 2 and \(\sigma { = 8}\), b Fourier transform

To show the phase information more intuitively, the radial phase distributions are shown in Fig. 8, and the selected sampling diameters are marked in Figs. 5, 6, 7.

Fig. 8
figure 8

Radial distribution of phase information: a electric iron, b candle, c propane

Figure 8 indicates that compared to the phase information extracted with Fourier transform, regardless of the flow field type, the one with Gabor wavelet transform is smoother and the noise is efficiently eliminated.

4.2 Comparison and discussion

As is shown in Figs. 5, 6, 7, 8, comparing the phase information extracted by Gabor wavelet transform with those by Fourier transform, the edge is clearer and the influence of noise is obviously eliminated with Gabor wavelet transform, which could also be seen in Fig. 8. Concretely speaking, the image will be smooth with the real part, while the imaginary part is used to detect the edge [34] based on filtering by Gabor wavelet transform.

Furthermore, because convolution is involved, the size of the convolution kernel needs to be considered. In the program, the kernel size is an important factor. Image convolution is the process of continuous multiplication and summation when the convolution kernel slides through the pixels on the image line by line. Consequently, if the kernel size is too small, the noise in the image will not be effectively eliminated. However, if the kernel size is too big, various valid information will be filtered out and the accuracy will be reduced. Hence, the optimal value for the kernel size should be considered in two aspects: guaranteed accuracy and noise reduction. To verify how the kernel size affects the extracted phase result, one set of images is shown.

Figure 9 shows the reconstructed phase of three different flow fields with the same kernel size, and the edge clarity of the three phase images is different. Obviously, the phase of electric iron and candle-air flame are basically normal, but the edge of propane-air flame’s phase is distorted seriously. It is because that compared with the other two cases, the propane-air flame’s phase has two peaks, and that the information is denser at the inflection point, the kernel size should be as small as possible to ensure its accuracy. Thus, the most suitable kernel size for propane-air flame is 2 in the actual operation of the program, as is shown in Fig. 7a, which is better than that shown in Fig. 9c.

Fig. 9
figure 9

Phase information at the same kernel size of 50: a Electric iron, b candle-air, c propane-air

As a comparison, the edges of candles and soldering irons are much smoother, so the kernel size of them could be bigger. Apparently, even if the kernel size is chosen as 50, it is still appropriate for both the electric iron and candle-air flame. Therefore, regarding different flow fields, the optimal value for the kernel size should be different.

Furthermore, for the sake of proving the effect of kernel size on final phase information, Fig. 10 is supplied. And the candle-air flame is chosen for further discussion.

Fig. 10
figure 10

Phase information of candle-air flame extracted with different kernel sizes: a 10, b 50, c 100

Figure 10 shows the phase information of candle-air flame extracted with the kernel sizes at 10, 50, and 100, respectively. It demonstrates that as the kernel size increases, the image of phase distribution becomes smoother. However, when the value of kernel size exceeds a specific value, the edge of the image becomes strange which means that the accuracy deduces.

5 Conclusion

In this paper, it is proved that Gabor wavelet transform is an excellent method to extract the phase information of moiré fringes. First, the expression of moiré fringes phase is derived theoretically. In the process above, Gabor wavelet function acts as a band-pass filter. Then, the moiré fringes of three typical flow fields are obtained by experiment. Based on which, the phase information is extracted with Gabor wavelet transform. Compared with the phase results extracted with Fourier transform, the effect of noise is efficiently eliminated, and the entire phase distribution is more accurate. Finally, the influence of the kernel size is discussed, which manifests that a proper kernel size can promote both the smoothness and the accuracy of phase distribution.