1 Introduction

Roughness is an important parameter to characterize the surface feature of mechanical parts. It is closely related with the properties of anti-wearing, the anti-corrosive, and the stability for fitting with other mechanical parts [1]. As ultra-precision engineering surfaces are becoming more important, so are surface quality requirements [2]. Surface roughness need be strictly controlled in mechanical processing, and the analysis and measurement of roughness has assumed great significance. Stylus is a representative traditional measurement method with high accuracy and resolution [3]. But the probe with the large size diameter (2-5 μm) will result in a low lateral resolution and damage the surface, and it is also unable to achieve rapid measurement. Thus the non-contact measurement method with the advantages of non-destructive, full field and real time has been focused for roughness measurement.

There are some optical methods for roughness measurement, such as speckle correlation method, moiré, fringe projection and interferometry [48]. Moiré fringe is helpful to acquire quantitative information but it is time-consuming to extract complex data from patterns [9]. The fringe projection method is to project grating on the object and capture the images from different directions [10]. Phase-shifting interferometry and white-light interferometry [11] are typical interferometry methods. The reference [12] proposed a method based on phase-shifting interferometry. The method with high sensitivity can realize a fast, precise measurement. The Wyko NT Profilometers and the RayDex Sensor [13] are typical commercial products based on white-light interferometry. The former is used in outer surface measurement and the latter is used in inner surface measurement. Generally, the interferometry can work with high precision, high sensitivity and fast measurement, and it has also some drawbacks such as the complex setup.

Digital holography is an imaging and measurement technology based on optical interference and diffraction. Both the intensity and the phase of object are obtained simultaneously from one hologram. It has been widely used in different fields, for example, biological cells [14], micro-mechanical components (materials in MEMS and NEMS) [15], temperature measurement [16, 17], particle size [18] and fluid flow velocity detection. In particular, digital holography has been applied to measure the surface roughness in Refs. [1921]. In these works, a micro objective (MO) is always used in Mach-Zehnder interference system or Michelson interference system in order to magnify the object wave. Hence two problems may be produced. One is that the micro objectives will introduce the quadratic phase error which is difficult to be compensated. The other one is that the micro objectives also will magnify the depth of the object wave while magnifying the lateral size of the object wave. Actually, two problems will produce the reconstructed phase error to make the detected height greater or less than the actual height value. Hence in the paper, we built a digital off-axis holographic system for the reflective sample on the basis of the Michelson interference theory. It has no the micro objectives to avoid the quadratic phase error. The height reconstruction error was calibrated by the quartz step height standard (VLSI-SHS-880QC).

2 Principle of calculating surface roughness with digital holography

The intensity distribution of hologram can be expressed

$$I(\xi ,\eta ) = \left| {O(\xi ,\eta )} \right|^{2} \,+\, \left| {R(\xi ,\eta )} \right|^{2} \,+\, O(\xi ,\eta )R^{*} (\xi ,\eta ) + O^{*} (\xi ,\eta )R(\xi ,\eta ),$$
(1)

where \(I(\xi ,\eta )\), \(O(\xi ,\eta )\), \(R(\xi ,\eta )\)are the intensity distribution of the hologram, object wave and reference wave on the hologram plane \((\xi ,\eta )\), respectively. The symbol * represents the conjugate function.

The convolution method is used to reconstruct the hologram and three times Fourier transform need be done. The numerical reconstruction process is [22]

$$O\left( {x^{\prime } ,y^{\prime } } \right) = {\mathcal{F}}^{ - 1} ({\mathcal{F}}(I(\xi ,\eta )R(\xi ,\eta )){\mathcal{F}}(g(x^{\prime } ,y^{\prime } ,\xi ,\eta )))$$
(2)

where \({\mathcal{F}}\) is the Fourier transform operator; \(O^{\prime} (x^{\prime} ,y^{\prime} )\) is the reconstructed object wave on image plane \((x^{\prime} ,y^{\prime} )\); \(R(\xi ,\eta )\) is the reference wave; \(g(x^{\prime} ,y^{\prime} ,\xi ,\eta )\) is the transfer function [22].

If the reference wave is a plane, then let \(R(\xi ,\eta ) = 1\). So on the image plane, the reconstructed intensity \(I(x^{\prime} ,y^{\prime} )\) and phase \(\varphi (x^{\prime} ,y^{\prime} )\) are as following:

$$I(x^{\prime} ,y^{\prime} ) = \left| {O^{\prime} (x^{\prime} ,y^{\prime} )} \right|^{2} ,\;\quad \varphi (x^{\prime} ,y^{\prime} ) = \arctan \frac{{Im[O^{\prime} (x^{\prime} ,y^{\prime} )]}}{{Re[O^{\prime} (x^{\prime} ,y^{\prime} )]}}.$$
(3)

Actually on the machined surfaces of mechanical components, roughness is defined to describe the level of ups and downs. Thus, the height is an important parameter to character the roughness. Generally the arithmetic average height value of the profile [23]—R a is one of the evaluation parameters. R a is defined as the arithmetic mean value of the absolute distance between all points on the contour line along measured direction (e.g., h axis) and the datum line of the sampling length. Assume that the contour line is expressed as h = h(x), then mathematical expression of R a is calculated as following [22]

$$R_{\text{a}} { = }\frac{1}{L}\int\limits_{0}^{l} {\left| {h(x) - \overline{h} } \right|} {\text{d}}x,$$
(4)

where L is a specified sampling length to cover the measured surface roughness and it should be selected according to the given roughness reference value by GB standard [23]; \(\overline{h}\) is the height distribution of the datum line (arithmetic average line); \(h(x)\) is the height distribution of every point in a sampling length area. So R a represents the arithmetic mean of deviation absolute value between each point within sampling length and datum line. The height distribution of the tested object can be converted from the reconstructed phase \(\varphi (x)\) of a hologram as

$$h(x) = \frac{\lambda }{{4{{\uppi }}}}\varphi (x),$$
(5)

where \(\lambda\) is the wavelength of the laser.

Thus we can calculate R a by using the following formula

$$R_{\text{a}} = \frac{\lambda }{{4{{\uppi }}L}}\int\limits_{0}^{L} {\left| {\varphi (x) - \frac{1}{L}\int\limits_{0}^{L} {\varphi (x)\text{d} x} } \right|} \text{d} x.$$
(6)

3 The off-axis hologram recording setup for the reflective samples

An off-axis digital hologram recording system is built based on the principle of Michelson interference. Its sketch map is shown in Fig. 1a. The light source from the He-Ne laser passes through the spatial filter to become a plane wave. It is separated into two beams by the beam splitter. One of them illuminates the sample vertically and then is reflected from the sample surface to the CCD plane, which being called as the object wave. The other beam through the beam splitter is taken as the reference wave. It will return to the beam splitter again after being reflected from the reference mirror. Then it interferes with the object wave on the plane of the CCD with a small angle. Thus an off-axis hologram is captured by CCD. The wavelength of the laser is 633 nm. The recorded pixels of the CCD are \(1\;200 \times 1\;600\) and its pixel size is 4.4 μm. Because of the convolution method used in reconstruction, the spatial resolution of the reconstructed image is the same with one of CCD. Figures 1b, c are the internal construction and the adjustable stage, respectively.

Fig. 1
figure 1

Digital off-axis hologram recording setup based on Michelson interference and the sample for the height calibration (a Sketch map of the digital off-axis hologram recording setup based on Michelson interference, bc Photo of the setup including the main optical path system and its platform, d Photo of the quartz step height standard (VLSI SHS-880QC))

Firstly, the quartz step height standard (VLSI SHS-880QC) with 88 nm height is used to calibrate the height reconstructed error of the measurement system, as shown in Fig. 1d. Figure 2 presents the experimental results of the quartz step height. Figure 2a is the hologram, b is the frequency spectrum, and c is the reconstructed phase. Five horizontal line traces are taken from the phase map along the arrow. Then they are transferred to the height distribution on the basis of Eq. (6), and one of them is shown in Fig. 2d. As we can see, two peaks are 82.61 nm and 77.99 nm. Thus the average height is 80.3 nm, noted with P1 in Table 1. We also calculated the average height of the remaining line traces, noted with P2, P3, P4, P5, respectively. So the finally average height can be calculated with P1, P2, P3, P4 and P5 as 90.04 nm, and the height error is about 2.3%.

Fig. 2
figure 2

Measurement of VLSI SHS-880QC

Table 1 Measurement results of height calibration

4 Roughness measurement results on different samples

Subsequently, a scribed-line model shown in Fig. 3a is tested. The scribed-line model made of GCr15 is a metal part with the periodic contour on the surface. The labeled surface roughness R a is 0.091 μm. The second sample with the grinding surface is one of the surface roughness comparison specimens being denoted by the elliptical line in Fig. 3b. The grinding surface shows the machining direction, not clear trace lines. That is the reason that the machining trace is invisible in Fig. 3b. The labeled surface roughness parameter R a is 0.025 μm.

Fig. 3
figure 3

Photos of two measured samples

The results are shown in Fig. 4. Figure 4a is the hologram, b and c is the frequency spectrum and the reconstructed phase, respectively. Then, according to the sampling lengths, five line traces profiles along the arrow in phase map shown in Fig. 4c are taken and shown in Figs. 4d-h. All of them should be at different positions. Subsequently, for every line trace, two horizontal lines must be calculated. One is datum line which means the arithmetic mean of the taken line trace. The other one is R a line. Thus, five surface roughness R a should be calculated, as shown in Table 2. Their average value is R a = 0.096 8 μm and the error compared with the given R a is 6.3%.

Fig. 4
figure 4

Measurement results of standard scribed-line model (a The hologram, b The frequency domain map, c The reconstructed phase, d–-h Five line traces according to five sampling length)

Table 2 R a of five sampling lengths on standard scribed-line model and the average value

For the other sample, the measured results on the surface roughness are shown in Fig. 5. The captured hologram, the frequency domain map and the reconstructed phase map are shown in Figs. 5a-c, respectively. Because the sample surface here shows random contour profile, five line traces according to the sampling lengths are just taken along the arrow in phase map in Fig. 5c, which should be vertical with the grinding direction. Their profiles are shown in Figs. 5d-h, respectively. Their average value and roughness R a are calculated. We can find them in Table 3 with the average value −0.025 24 μm. Thus the error is about 0.9%.

Fig. 5
figure 5

Measurement results of the grinding specimen (a The captured hologram, b The frequency spectrum, c The reconstructed phase, dh The profile maps according to five sampling lengths along the arrow in c)

Table 3 R a of five sampling lengths on grinding model and the average value

5 Results analysis based on a different window size of filter

Actually, when the object wave can be reconstructed rightly described in Eq.(2), we have to use a window filter as the dotted line rectangle shown in Figs. 4b and 5b to get the useful frequency spectrum. The useful frequency spectrum distribution is always different because of the diffraction difference of the different samples. Thus, it is difficult to decide the window size of the filter. For example, in Fig. 4b, the whole useful frequency spectrum area can be gotten by a window filter. But in Fig. 5b just the main part of the frequency spectrum is contained because of the long shape. Thus we also analyze the effects of the different window size of the filter on the reconstruction results. For example, we choose another filter with \(61 \times 588\) pixels as shown in Fig. 6a. It means that the central frequency is focused to reconstruct and the one on the edge will be missed. Figure 6b is the reconstructed phase. According to the same processing steps above, the profiles of five sampling length of Fig. 6b are shown in Figs. 6c-g.

Fig. 6
figure 6

Reconstructed results by using a different window size of filter for the grinding sample (a Spectrogram, b Phase map, cg Profiles of sampling lengths)

Even though the profile difference between Figs. 5d-h and 6e-g is not clear enough, the calculated R a values indicate the difference clearly. R a values of the profiles shown in Figs. 6e-g are 0.025 24 μm, 0.025 56 μm, 0.025 22 μm, 0.025 09 μm, and 0.025 80 μm, respectively. Their average value is 0.025 38 μm. Compare it with the average R a 0.025 24 μm in Fig. 5, we can find that a narrow filter window should be more suitable to perform that.

6 Conclusions

A system for surface roughness measurement based on digital holography has been demonstrated in the paper. Generally, digital holography can characterize surface information effectively, and ensure high accuracy roughness measurement. But we also confirm that digital holography should be more suitable the samples with periodic contour surface for roughness measurement, but with the bigger measurement error. Actually, the measurement error is also connected with the pixel size. The smaller the pixel size is, the more precise the measurement results are. For the surface with random contour, the measurement error will be smaller, but the window size of filter during the hologram being processed should be difficult to be decided. Thus, in next work, we will develop the wavelet filter to finish the frequency filtering of the off-axis hologram. Because the wavelet filter must not select the window size, which sounds a better choice for the roughness measurement with the random contour surface.