원시데이터 수집 시스템
선정목록으로

Three-dimensional shape measurement for the steep surface using DMD camera

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (22) POM(폴리아세탈)(21) 에폭시수지

기본 정보

저자
  1. Shoubo Zhao — School of Mechanical Engineering, Guangdong Ocean University, Zhanjiang, 524088, China
  2. Yuqiang Yang — Guangdong Provincial Engineering Research Center for Ship Intelligence and Safety, Guangdong Ocean University, Zhanjiang, 524088, China
DOI
10.1038/s41598-022-24942-8
저널
Scientific Reports
발행년도
2022
발행기관
Nature Portfolio
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-022-24942-8
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4311023686

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(22) POM(폴리아세탈), (21) 에폭시수지
R&D 측면
물성·성능 평가
확신도
0.70
근거 용어
Three-dimensional shape measurement, involute gear, geometric error, industrial inspection
판단 근거
이 논문은 DMD 카메라와 압축 센싱 기술을 이용한 3차원 형상 측정 기술을 다루고 있으며, 특히 인볼류트 기어(involute gear)의 기하학적 오차 분석을 응용 사례로 제시합니다. 이는 코오롱인더스트리의 엔지니어링 플라스틱(POM 등) 성형 부품의 정밀 품질 검사 및 형상 분석 공정에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
엔지니어링 플라스틱으로 제조된 정밀 기어, 모듈, 성형 부품의 미세 형상 및 기하학적 오차를 비접촉식으로 정밀 측정하는 품질 관리 시스템 구축에 활용 가능합니다.
평가 입력
본문 40,592자

초록

Abstract Three-Dimensional shape measurement has been confronted with the ambiguity on the steep surface. To address the problem, compressed sensing theory is employed to reconstruct phase shifting images in DMD camera. Specially, every CCD pixel in the region of interest is aligned to N × N DMD mirrors to construct DMD camera. The one-dimensional measurement matrices are chosen to collect the measured values on CCD pixel according to the directional judgement of original gradient image. Due to the enhancement of the spatial sampling frequency and the noise robustness, the reconstructed sinusoidal stripe images are utilized to obtain the three-dimensional model of the steep surface accurately. We measure the planes with various slopes to discuss the measurement capability. The comparative experiments show that our proposed method can correct the deformed phase and repair the defect on the steep surface.

본문 40,592자

본문 펼치기
## OPEN # Three‑dimensional shape measurement for the steep surface using DMD camera Shoubo Zhao <sup>1,2</sup> <sup>*</sup> & Yuqiang Yang <sup>2</sup> Three-Dimensional shape measurement has been confronted with the ambiguity on the steep surface. To address the problem, compressed sensing theory is employed to reconstruct phase shifting images in DMD camera. Specially, every CCD pixel in the region of interest is aligned to _N_ × _N_ DMD mirrors to construct DMD camera. The one-dimensional measurement matrices are chosen to collect the measured values on CCD pixel according to the directional judgement of original gradient image. Due to the enhancement of the spatial sampling frequency and the noise robustness, the reconstructed sinusoidal stripe images are utilized to obtain the three-dimensional model of the steep surface accurately. We measure the planes with various slopes to discuss the measurement capability. The comparative experiments show that our proposed method can correct the deformed phase and repair the defect on the steep surface. Spatial sampling frequency is the key factor in three-Dimensional shape measurement, which is limited by spatial resolution of sensor. Once the image resolution and the parameters of objective lens are fixed in traditional imaging technology, it is no way to enhance spatial sampling frequency of traditional imaging system. However, partial slope factor of complex surface is often beyond the capacity of spatial sample, which produces the sampling information loss in the region of steep surface. Take the involute gear for example, which is widely used in mechanical engineering. To ensure the stability of gear drive and the uniformity of load distribution, it is necessary to conduct three-Dimensional shape measurement to analyze geometric error such as pressure angle, thickness, addendum and dedendum. While 3D shape measurement is confronted with the challenge of the continuous increasement in the slope factor of the involutes profile. The limitation of spatial sampling frequency causes the unwrapped phase gap. The defect often manifests as these holes and fractures in the reconstruction surface. The same phenomenon occurs in other concave and convex parts such cam, hemispheroid and inner bore. There are some traditional strategies to measure the steep surface. Many researchers make use of coded structured light to enhance sub-pixel ­accuracy <sup>1–4</sup> . Fang Ji proposed an adaptive Canny edge detection method with two phases to distinguish the light stripes ­accurately <sup>5</sup> . Kai Liu embedded a period cue into the projected pattern to solve the depth ambiguity which caused by increasing the number of pattern ­stripes <sup>6</sup> . Zhan Song designed a gridline pattern to improve decoding accuracy of 3D sensing ­system <sup>7</sup> . Rosario Porras-Aguilar optimized greylevel projection patterns with a minimal gradient to reduce phase error near the border of the ­stripe <sup>8</sup> . However, since the reflectance variation on measured surface produces the ambiguity of intensity pattern, the sub-pixel accuracy estimations for structured light in above coding technologies could not avoid random errors of the ambiguity in 3D ­measurement <sup>9</sup> . In addition, focus variation technology is also a common way of measuring steep surface. Reinhard Danzl exploited the small depth of focus of an optical system with vertical scanning to enhance the maximum measurable slope ­angle <sup>10</sup> . Lewis Newton analyzed the measurement process control parameters to improve the quality of the focus variation measurement ­results <sup>11</sup> . Yukitoshi proposed a phaseshifting method merging into focus variation technology to analyze the contrast distribution by projecting grating ­pattern <sup>12</sup> . However, since the performance of focus variation measurement is significantly affected by the control precision of instrument vertical scanning process, the vertical scanning error along the optical axis restricts the measurement capability for the steep Surface. Imaging from different angle is an effective method to void steep surface in 3D ­measurement <sup>13–16</sup> . Although we can bypass the problem by employing the multiple view imaging structure, it is necessary to tackle the problem head on by enhancing imaging resolution of the traditional imager. Some researchers proposed interpolation algorithms to improve the measurement accuracy by up-sampling original ­image <sup>17–19</sup> . Wenzhe proposed algorithm for the accurate measurement of 3D cardiac 1School of Mechanical Engineering, Guangdong Ocean University, Zhanjiang 524088, China. 2Guangdong Provincial Engineering Research Center for Ship Intelligence and Safety, Guangdong Ocean University, Zhanjiang 524088, China. <sup>*</sup> email: shoubozh@126.com function by reconstructing a super-resolution image within an expectation maximization ­framework <sup>17</sup> . Yang presented an iterative refinement approach to up-sample the original low-resolution ­image <sup>18</sup> . Peter proposed a method for super-resolution 3D laser scanning by which the length of the line segments along the camera rays can be ­tightened <sup>19</sup> . We pursue a goal that imaging resolution is improved to enhance spatial sampling frequency on the steep surface more effectively. Compressed sensing (CS) as a signal processing technology for under-sampling and reconstructing a signal has been widely applied on medical imaging, remote sensing and industrial inspection over the past decade, since the signal may be recovered with far fewer samples than the Nyquist–Shannon sampling theorem ­requires <sup>20–24</sup> . Marco in Rice University designed a single-pixel camera based on the spatial light modulator (SLM) with CS ­theory <sup>25</sup> . SLM is employed to provide the measurement matrices by being imposed the modulation pattern. The modulated light is then focused onto a single photon detector. Single photon detector integrates the inner product of measurement matrices and the measured object to yield a set of sampled values. The set of sampled values are used to recover the object image via minimization. As a result, the single-pixel camera can image the scene with higher spatial sampling frequency than the single photon ­detector <sup>26</sup> . An alternative advantage is that the single-pixel camera is robust in the presence of noise, since one or more measurements can be lost without corrupting the entire reconstruction in CS ­theory <sup>27,28</sup> . This paper are inspired by previous works on single-pixel imaging technology and CS ­theory <sup>29</sup> . We try to use DMD camera, which is merged with CS theory, to improve the three-Dimensional shape measurement for steep surface. DMD camera can process the spatial array of incident rays before image formation. This modulation improves the quality of phase-shifting fringe image by reshaping waveform. The compensation of phase error and the suppression of noise are beneficial to three-Dimensional shape measurement. The paper is organized as follows: Sect. 2 describes DMD camera architecture and alignment method. The measurement matrices for reconstruction of the sinusoidal stripe images are designed to measure three-dimensional shape in Sect. 3. Subsequently, experiments for 3D measurement are implemented to verify the performance of our method in Sect. 4. Finally, this research is concluded to discuss the advantage and limitation in Sect. 5. DMD camera system. We constructed an imaging system called DMD camera that was applied on 3D shape measurement and noise ­removal <sup>30,31</sup> . The difference between DMD camera and single-pixel camera is mainly that the single photon detector is replaced by array charge coupled device (CCD). The schematic of DMD camera is shown in Fig. 1a. The system is composed of CCD, DMD, 6-DoF stage, image processor and four imaging lenses (Lens1, Lens2, Lens3 and Lens4). The pixel of CCD collects the reflected photons from the corresponding segment of DMD. 6-DoF assemble stage with piezoelectric actuators is conducted to adjust the angular and linear displacement of CCD according to the feedback from image processor. Zemax optics software is employed to analyze image quality. Figure 1b is the spot diagram of DMD camera system. The maximum radius of elliptical Airy spot is 1.894um. Imaging distortion on x-axis is inevitable due to Scheimpflug condition. Figure 1c,d are respectively the distortions on x-axis and y-axis. The distortion on x-axis is obviously bigger than the distortion on y-axis. And the linear growth is consistent with previous theoretical derivation in ­Ref <sup>30</sup> . The paraxial magnification of Lens1 can be scanned from × 0.1 to × 10. Piezoelectric actuators (Thorlabs NanoMax320) are provided for fine adjustment with 20 nm resolution. DMD (Discovery 4100) provides 8bpp and a resolution of 1920 × 1080; DMD mirror element is 7.6 × 7.6 microns. CCD (Teli-BU30) allows for 8 bits per pixel (bpp) of precision in RAW mode and a resolution of 768 × 576; CCD pixel is 7.4 × 7.4 microns in size. To utilize CS imaging technology, it is necessary that every CCD pixel in the region of interest (ROI) is assigned to multiple DMD mirrors. Consequently, DMD is divided into an array of segments, all of which contains _N_ × _N_ mirrors ( _N_ be integer). As shown in Fig. 2, a closed-loop system composed of piezoelectric actuators, CCD, Lens1, DMD and image processor is constructed to achieve accurate alignment between DMD and CCD, before DMD camera is on the working state. The alignment between DMD and CCD involves six degree of freedom (DoF) adjustments including three linear displacements on the horizontal axis x, the vertical axis y, the optical axis z and three angular displacements on pitch angle, yaw angle, roll angle. DMD can be regarded as one grating by programming the state of mirror array to form black and white line patterns. Likewise, CCD can be regarded as the alternative grating by using the subsampling technique. In other words, the pixels of the original image will be selected with the period of f, and unselected pixels will be interpolated by the neighbor selected pixel. The programming grating pattern is focused onto the subsampling grating pattern by Lens1 to product optical superposition phenomenon called moiré fringe. Moiré fringe image can be expressed as: Im <sup>i</sup> <sup>(x, y) = I</sup> f - Floor( <sup><u>x</u></sup> (1) f <sup>) + i, f</sup> <sup>· Floor(</sup> <sup><u>y</u></sup> f <sup>) + i</sup> m <sup>i</sup> <sup>(x, y) = I</sup> �f - Floor( <sup><u>x</u></sup> f <sup><u>x</u></sup> f <sup>) + i, f</sup> <sup>· Floor(</sup> <sup><u>y</u></sup> f <sup><u>y</u></sup> f <sup>) + i</sup> where function Floor[•] is to get the integer towards minus infinity. (x, y) is the CCD pixel coordinate. I(x, y) is the original image captured by CCD. The symbol f denotes the period of grating in CCD. Shifting phase in the ith moiré image is 2iπ/f, i = 1, 2, …, f . By observing the moiré fringe image, the roll, the pitch and the yaw angle are adjusted to obtain the intermediate state that the moiré fringe parallels the original grating fringe. Moiré fringe image is used for phase calculation and neighbor interpolation in the image processor to obtain the moiré phase image and the profile-varying periodic fringe image respectively. The moiré phase image can be described by: Figure 1. DMD imaging system. ( a ) The architecture of DMD camera. ( b ) The spot diagram of DMD camera system. ( c ) The distortions on x-axis. (d) The distortions on y-axis. - <u>�iif==11</u> <sup>II</sup> m <sup>ii</sup> <u>��ifif==11</u> <sup>II</sup> mm <sup>ii</sup> <sup>·· cos sin((22iiπ/π/ff ) )</sup> <u>m</u> <sup>· sin(2iπ/f )</sup> ϕ(x, y) = arctan (2) By observing the moiré phase image, the paraxial magnification and z displacement along the optical axis are adjusted to make moiré phase distribution uniform. At this state, the frequency difference between the CCD and DMD equals to zero. The neighbor interpolation can be described by: <u>f</u> ) + Mod(2Nx, f ), ) + Mod(2Ny, f ) 2N <sup>· Floor(</sup> <sup><u>2Nx</u></sup> f 2N <sup>· Floor(</sup> <sup><u>2Ny</u></sup> f - <u>f</u> Is(x, y) = I ) + Mod(2Nx, f ), ) + Mod(2Ny, f ) (3) 2N <sup>· Floor(</sup> <sup><u>2Nx</u></sup> 2N <sup>· Floor(</sup> <sup><u>2Ny</u></sup> where function Mod(divident, divisor) is to get the remainder. The symbol N ∗ N is the mirror number in the segment of DMD. By observing the subsampling image, x-axis and y-axis displacements are adjusted to eliminate the initial phases of moiré fringe. Image processor can calculate the required displacements in 3-axis directions of PZT. PZT receives the feedback and execute the 3-axis adjustments until accurate alignment between the segment of DMD and the pixel of CCD is completed. The accurate alignment approach using the four-step procedure was discussed in detail in ­Ref <sup>32</sup> . Method As an indispensable factor of CS theory, measurement matrix is employed to acquire the under-sampling image. Figure 3 is the procedure of image acquisition in DMD camera. We first choose an orthogonal square matrix with uniform distribution such as Hadamard matrix, Bernoulli random matrix and Gaussian random matrix to ensure the restricted isometry property (RIP). The orientation of measurement vector is determined by comparing the horizontal gradient gx and vertical gradient gy of CCD pixel in original object image. If the measurement vector is x orientation ( gx(x, y) < gy(x, y) ), measurement matrix �H is obtained by randomly selecting _M_ columns in the orthogonal square matrix. Alternatively, if the measurement vector is y orientation ( gx(x, y) > gy(x, y) ), Figure 2. The closed-loop system for accurate alignment between CCD and DMD. Figure 3. The CS-based imaging schematic of DMD camera. measurement matrix �V is obtained by randomly selecting _M_ rows in the orthogonal square matrix. The DMD pattern sequence is represented by Figure 4. Comparative results. ( a ) The reconstructed stripe image. ( b ) Intensity distributions of the projected sinusoidal stripe in the reconstructed image of DMD camera and the image of traditional camera with N times resolution. ( c ) Spatial sampling distribution of the projected sinusoidal stripe in the reconstructed image and the non-reconstructed image. �H (m, mod(v, N)) gx(mod(u, N), mod(v, N)) < gy(mod(u, N), mod(v, N)) DMDm(u, v) = (4) �V (mod(u, N), m) gx(mod(u, N), mod(v, N)) > gy(mod(u, N), mod(v, N)) where (u, v) is the DMD mirror coordinate. The symbol m denotes the ordinal number of the DMD pattern, m = 1, 2, 3 . . . M . CCD pixel collects the measured value Yx,y(m) when DMD provides the m th pattern, i.e., DMD camera captures _M_ images after _M_ times exposure. Assuming that Ix,y(n) is the original scene signal of arbitrary pixel (x, y), the measured values Yx,y(m) can be expressed by Yx,y(m) = � <sup>T</sup> H <sup>Ix,y(n)</sup> or Yx,y(m) = �V Ix,y(n) (5) where � <sup>T</sup> H <sup>is the transpose of the matrix �H . Since 3D measurement is implemented by projecting the structure</sup> light pattern with sinusoidal stripes in this research, discrete cosine transform basis is suitable for the sparse representation of the stripe image. Discrete cosine transform matrix � is size N × N . The mirror number in the DMD segment is equal to the size of discrete cosine transform matrix � . To reconstruct the original scene signal Ix,y(n), orthogonal matching pursuit (OMP) algorithm is utilized to solve the optimization problem of the L0-norm <sup>33</sup> . < ε 2 ���� ⌢I x,y = arg min 0 s.t ⌢I x,y < ε (6) ����Yx,y - �� ⌢I x,y where the optimal solution ⌢I x,y is the reconstructed vector of the original scene signal Ix,y(n). We project the sinusoidal stripe and reconstruct it by applying CS theory on DMD camera. Figure 4 confirms the noise robustness and the enhancement of spatial sampling frequency. Figure 4a is the reconstructed sinusoidal stripe image. Green solid line is the cross section in the x direction. Black line in Fig. 4b is the intensity distributions of the projected sinusoidal stripe in the reconstructed image of DMD camera. Red line in Fig. 4b is the intensity distributions of the projected sinusoidal stripe in the traditional image with _N_ times resolution respectively. The variable reflectivity and the multiple-reflection result in the sinusoidal stripe distortion which can be regarded as the random noise. The comparison shows that CS-based imaging method removes the noise effectively. Black ‘ + ’ and red ‘o’ in Fig. 4c are the spatial samples in reconstructed image and the non-reconstructed image respectively. The reconstructed image has _N_ times as many resolutions as the previous image. Obviously, DMD camera can support the high-resolution imaging by mapping one pixel to multiple mirrors. Merged with CS theory, it can capture sinusoidal stripe image with low noise to improve the quality of phase solution. In a word, proposed CS-based imaging method has advantage in 3D shape measurement for the steep surface. where the optimal solution 0 s.t ��Ix,y�� In this research, four-step phase shifting algorithm is employed to measure the steep surface. The DMD pattern sequence of four projections is identical to ensure the calculation of wrapped phase. The four reconstructed fringe images with step phase shift π/2 are expressed as 1 4   1 4 N <sup><u>n</u></sup> <sup>y) + 3π/2]</sup> N <sup><u>n</u></sup> <sup>x, y) + 3π/2]</sup> x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(</sup> N <sup><u>n</u></sup> x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(x,</sup> N <sup><u>n</u></sup> 2 2 N <sup><u>n</u></sup> <sup>x, y)]</sup> N <sup><u>n</u></sup> <sup>y)]</sup> x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(</sup> N <sup><u>n</u></sup> or (7)   x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(x,</sup> N <sup><u>n</u></sup> 3 3 N <sup><u>n</u></sup> <sup>x, y) + π/2]</sup> N <sup><u>n</u></sup> <sup>y) + π/2]</sup> ⌢I 2 ⌢I x ⌢I 4 ⌢I x x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(x,</sup> N <sup><u>n</u></sup>  ⌢I 2 ⌢I x ⌢I 4 ⌢I x x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(</sup> N <sup><u>n</u></sup> N <sup><u>n</u></sup> <sup>x, y) + π</sup> <sup>]</sup> N <sup><u>n</u></sup> <sup>y) + π]</sup> x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(</sup> N <sup><u>n</u></sup>  x,y <sup>(n) = ax,y</sup> <sup>+ bx,y cos[φ(x,</sup> N <sup><u>n</u></sup> where ax,y is the background intensity, and bx,y is the intensity amplitude. Thus the refined phase on the n th sub-pixel of point (x, y) is calculated by 4 x,y <sup>(n)</sup> x,y <sup>(n) −</sup> 3 1 1 (8) φ( N <sup><u>n</u></sup> <sup>x, y) = arctan</sup> 2 x,y <sup>(n) −</sup> ⌢I ⌢I x,y <sup>(n)</sup> ⌢I 4 / / 3 or �� �� φ(x, <sup><u>n</u></sup> N <sup>y) = arctan</sup> ��⌢I ��⌢I 2 x,y <sup>(n) −</sup> x,y <sup>(n)</sup> �⌢I �⌢I x,y <sup>(n) −</sup> ⌢I x,y <sup>(n)</sup> where φ( N <sup><u>n</u></sup> <sup>x, y) and φ(x,</sup> N <sup><u>n</u></sup> <sup>y) are a wrapped phase ranging from –π to π. To measure the depth information, it is</sup> necessary to unwrap the phase. In this paper, two-frequency temporal phase unwrapping algorithm is employed to obtain the unwrapped phase as follows: where φ( N <sup><u>n</u></sup> N <sup><u>n</u></sup> <sup>x, y) and φ(x,</sup> N <sup><u>n</u></sup> φ˜x,y(n) = Mod[φx <sup>l+</sup>,y <sup>1(n) −</sup> <sup>φ</sup> x <sup>l</sup>,y <sup>(n), 2π]</sup> (9) x <sup>l+</sup>,y <sup>1(n) −</sup> <sup>φ</sup> x <sup>l</sup> x <sup>l</sup>,y <sup>(n), 2π]</sup> kx,y(n) = Round{[lφ <sup>˜</sup> x,y(n) − φx <sup>l</sup>,y <sup>(n) −</sup> <sup>π</sup> <sup>]/2π}</sup> (10) φx,y(n) = φx <sup>l</sup>,y <sup>(n) + 2π</sup> <sup>· kx,y(n) + π</sup> (11) where φ <sup>˜</sup> x,y(n) is the normalized phase, φx <sup>l</sup> where φ <sup>˜</sup> x,y(n) is the normalized phase, φx <sup>l</sup>,y <sup>(n) and φ</sup> x <sup>l+</sup>,y <sup>1(n) are the wrapped phase with fringe frequency P/l</sup> and P/(l + 1) respectively, P is the normalized period. Function Mod[•] is to obtain the remainder when φx <sup>l+</sup>,y <sup>1(n) −</sup> <sup>φ</sup> x <sup>l</sup>,y <sup>(n) is divided by 2π. kx,y(n) is the sequence number of the unwrapped phase period, function</sup> x <sup>l</sup>,y <sup>(n) and φ</sup> x <sup>l+</sup>,y <sup>1</sup> φx <sup>l+</sup>,y <sup>1(n) −</sup> <sup>φ</sup> x <sup>l</sup>,y <sup>(n) is divided by 2π. kx,y(n) is the sequence number of the unwrapped phase period, function</sup> Round[•] is to get the nearest integer. To reduce the phase error and enhance the signal noise ratio (SNR) of the reconstructed form, median filtering is usually performed after Eq. (10). φx,y(n) is the ultimate unwrapped phase ranging from 0 to 2kπ. The unwrapped phase will be converted to 3D coordinate by the phase-to-depth map. Based on above proposed method, three-dimensional shape measurement for the steep surface can be implemented. Experiments To assess the ability to measure steep surface, we took the planes with various slopes as objects in 3D measurement. Figure 5 is the results that the planes with various slopes are measured by using our proposed method. Figure 5a is the experimental setup. The different color planes reconstructed in Fig. 5b refer to the surfaces with various slopes. The depth direction is identical to the primary optical axis of the objective lens. Figure 5c demonstrates the correlation that maximum measurable angle is gradually enhanced with the increasement of parameter _N_ . Under the constraint of root mean square (RMS), the maximum measurable angle α⌢ of sloping plane which is fitted by least square function approximation can be expressed by: x <sup>l+</sup>,y <sup>1(n) −</sup> <sup>φ</sup> x <sup>l</sup> Experiments To assess the ability to measure steep surface, we took the planes with various slopes as objects in 3D measurement. Figure 5 is the results that the planes with various slopes are measured by using our proposed method. Figure 5a is the experimental setup. The different color planes reconstructed in Fig. 5b refer to the surfaces with various slopes. The depth direction is identical to the primary optical axis of the objective lens. Figure 5c demonstrates the correlation that maximum measurable angle is gradually enhanced with the increasement of parameter _N_ . Under the constraint of root mean square (RMS), the maximum measurable angle α⌢ of sloping < ε 2 ���� ⌢ α⌢x,y = arg max 0 s.t Zx,y < ε (12) 0 s.t ��αx,y�� where Zx,y is the measured depth value at point (x, y), and Z⌢x,y denotes the least squares approximating value. As Fig. 5 indicates, we can obtain that parameter _N_ is determined by calculating the slope angle of measured surface on the following measurement. Table 1 shows the errors of the reconstructed plane with the different _N_ . The measurement speed is mainly determined by the number of captured images. The measurement accuracy depends on the spatial resolution. Both of them are related with _N_ . Considering the tradeoff between the captured times and reconstructed accuracy, _N_ is selected from 2 to 5. The angle of the reconstructed sloping plane is 85 degrees. By fitting these planar point clouds using the least-squares method, the maximum surplus error _E_ m is used to verify the reconstructed accuracy on the edge. The standard deviation _σ_ illustrates that our method efficiently decreases the noise of the steep surface. where Zx,y is the measured depth value at point (x, y), and ⌢ Zx,y ����x,Zy x,y Figure 6 is the phase distribution of the measured plane obtained by different methods. For comparison, we choose Zhan Song’s method that the gridline pattern is designed to encode localization with sub-pixel accuracy and Rosario’s method that generates a series of projection patterns with a minimal gradient in the intensity to reduce errors near the ­border <sup>7,8</sup> . The mirror number of 5 × 5 is used in our method. Red diagonal is the cross section of phase map. To align diamond-shaped DMD mirror, camera has been rotated 45 degrees clockwise. The errors of reconstructed plane with different methods are shown in Table 2. _E_ a denotes the difference between the ground truth and the calculated position of fitted plane. These results indicate that proposed method has higher accuracy than other methods. 3D shape measurement for the involute gear is an appropriate application of proposed method. Since the tooth profile and the tooth root fillet determine the contact force when one gear is driving another gear, the force analysis demands to measure them accurately. To avoid the occlusion from neighbor teeth, we used the proposed method to measure the tooth profile and the tooth root fillet in Fig. 7b. Figure 7a is the measuring result of the gear teeth with traditional four-step phase shifting profilometry (PSP). The defects on the tooth profile and the tooth root fillet would result in the failure to analyze the force in Fig. 7a. The measuring result in Fig. 7b shows that our proposed method can eliminate those defects. We measured the rabbit model to verify the performance of proposed method in Fig. 8 too. There are many gaps on the edge of the reconstructed rabbit in Fig. 8a. It is difficult to reconstruct the acute characteristics of plaster model. Our method enhances the spatial resolution to improve the reconstructed performance on the acute angle edge. The reconstructed edge becomes plump in Fig. 8b. The comparative results in Figs. 7 and 8 indicate that our proposed method can improve 3D shape measurement for the steep surface to a certain extent. Figure 5. The experimental results of measuring planes with various angles. ( a ) The experimental setup. ( b ) 3D reconstructed planes with various angles. ( c ) Maximum measurable angle with different parameter N. _<u>N</u>_ <u>2</u> <u>3</u> <u>4</u> <u>5</u> _<u>E</u>_ <u>m (mm)</u> <u>0.20</u> <u>0.07</u> <u>0.06</u> <u>0.05</u> _<u>σ</u>_ <u>(mm)</u> <u>0.08</u> <u>0.04</u> <u>0.02</u> <u>0.02</u> Table 1. The errors of the reconstructed plane with the different N. Four-step phase shifting profilometry requires 4 projecting patterns. To meet the two-frequency temporal phase unwrapping algorithm and four-step phase shifting profilometry, projector will give 8 sinusoidal stripes. For a complete measurement based on our method, 8 _M_ captured times will be taken, M ≤ N . The number _N_ determines the time consumption besides the reconstructed quality of CS, as shown in Table 3. In our experiment, CR (compressive rate) is 0.6 at least, e.g., if N was 5, M would be 3. Totally, camera will capture 24 images to complete one measurement. Conclusion In this works, we presented the method that CS theory is used to capture phase shifting images in DMD camera to measure steep surface. Specially, DMD camera system that one CCD pixel can be assigned to multiple DMD mirrors was constructed. Two directional measurement matrices from the same orthogonal square matrix were used to modulate the DMD segments by judging the gradient direction of original image. Thus the sinusoidal stripe images with phase shifting π/2 were reconstructed to obtain the three-dimensional shape of the measured object. Finally, we measured the involute gear and the rabbit model to demonstrate that 3D shape measurement for the steep surface can be improved by our proposed method. It is obvious that the method in this paper has advantages in the noise robustness and the enhancement of spatial sampling frequency. However, the quality of reconstructed phase shifting images is limited by the compression ratio. To trade off the reconstructed quality against the time consumption, we did not adopt the measurement matrix with the dimension M × N <sup>2</sup> in classical CS theory. Furthermore, our method is able to reconstruct the three dimensional shape of the obtuse angle edge. The acute angle edge is difficult to measure due to the ambiguity of the edge. Our proposed method can be a compensation for other phase shifting profilometry technology, e.g., this method can merge with dual-camera Figure 6. The cross section of phase map in the measurement experiment of the same plane. ( a ) obtained by Zhan Song’s method. ( b ) obtained by Rosario’s method. ( c ) obtained by Proposed method. <u>Methods</u> _<u>E</u>_ <u>a (mm)</u> _<u>E</u>_ <u>m (mm)</u> _<u>σ</u>_ <u>(mm)</u> <u>Zhan Song’s method</u> <u>0.12</u> <u>0.24</u> <u>0.06</u> <u>Rosario’s method</u> <u>0.17</u> <u>0.31</u> <u>0.03</u> <u>Proposed method</u> <u>0.04</u> <u>0.05</u> <u>0.02</u> Table 2. The errors of the reconstructed plane with different methods. Figure 7. The comparison between the reconstructed gear teeth ( a ) with traditional four-step PSP and the reconstructed gear teeth ( b ) with proposed method. Figure 8. The comparison between the reconstructed rabbit ( a ) with traditional four-step PSP and the reconstructed rabbit ( b ) with proposed method. <u>Projecting pattern number</u> <u>Capture times 4 M</u> <u>N = 3</u> <u>2 × 4</u> <u>16 (CR = 0.67)</u> <u>N = 4</u> <u>2 × 4</u> <u>24 (CR = 0.75)</u> <u>N = 5</u> <u>2 × 4</u> <u>24 (CR = 0.6) or 32(CR = 0.8)</u> Table 3. The captured times with the different N. PSP technology to enhance the measurement accuracy of steep surface further. Our group will focus the research on DMD scanning alignment method which would break through the limitation of DMD resolution in the future. Data availability The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request. Received: 11 September 2022; Accepted: 22 November 2022 References 1. Geng, J. Structured-light 3D surface imaging: a tutorial. _Adv. Opt. Photon._ 121 [, 128–160. https://​doi.​org/​10.​1364/​AOP.3.​000128](https://doi.org/10.1364/AOP.3.000128) (2011). 2. Guehring, J. Dense 3D surface acquisition by structured light using off-the-shelf components. _Proc. Photonics West 2001 Electronic_ _Imaging._ 4309 [, 220–231. https://​doi.​org/​10.​1117/​12.​410877 (2000).](https://doi.org/10.1117/12.410877) 3. Salvi, J., Fernandez, S., Pribanic, T. & Llado, X. A state of the art in structured light patterns for surface profilometry. _Pattern Recogn._ 43 [, 2666–2680. https://​doi.​org/​10.​1016/j.​patcog.​2010.​03.​004 (2010).](https://doi.org/10.1016/j.patcog.2010.03.004) 4. Wang, S., Zhu, Z., Zhang, H. & Zhou, F. Suppression method for strong interference from stray light in 3D imaging system of structured light. _Opt. Eng._ [https://​doi.​org/​10.​1117/1.​oe.​59.​10.​105106 (2020).](https://doi.org/10.1117/1.oe.59.10.105106) 5. Yu, C., Ji, F., Jing, X. & Liu, M. Dynamic granularity matrix space based adaptive edge detection method for structured light stripes. _Math. Probl. Eng._ 2019 [, 1959671. https://​doi.​org/​10.​1155/​2019/​19596​71 (2019).](https://doi.org/10.1155/2019/1959671) 6. Wang, Y., Liu, K., Hao, Q., Lau, D. L. & Hassebrook, L. G. Period coded phase shifting strategy for real–time 3-D structured light illumination. _IEEE Trans. Image Process._ 20 [, 3001–3013. https://​doi.​org/​10.​1109/​tip.​2011.​21550​72 (2011).](https://doi.org/10.1109/tip.2011.2155072) 7. Song, Z., Tang, S., Gu, F., Shi, C. & Feng, J. DOE-based structured-light method for accurate 3D sensing. _Opt. Lasers Eng._ 120, [21–30. https://​doi.​org/​10.​1016/j.​optla​seng.​2019.​02.​009 (2019).](https://doi.org/10.1016/j.optlaseng.2019.02.009) 8. Porras-Aguilar, R., Falaggis, K. & Ramos-Garcia, R. Optimum projection pattern generation for grey-level coded structured light illumination systems. _Opt. Lasers Eng._ 91 [, 242–256. https://​doi.​org/​10.​1016/j.​optla​seng.​2016.​12.​009 (2017).](https://doi.org/10.1016/j.optlaseng.2016.12.009) 9. Jia, X., Zhang, Z., Cao, F. & Zeng, D. Model and error analysis for coded structured light measurement system. _Opt. Eng._ 49, 123603. [https://​doi.​org/​10.​1117/1.​35200​56 (2010).](https://doi.org/10.1117/1.3520056) 10. Danzl, R., Helmli, F. & Scherer, S. Focus variation - a robust technology for high resolution optical 3D surface metrology. _Stroj_ _Vestn-J. Mech. E_ 57 [, 245–256. https://​doi.​org/​10.​5545/​sv-​jme.​2010.​175 (2011).](https://doi.org/10.5545/sv-jme.2010.175) 11. Newton, L. _et al._ Areal topography measurement of metal additive surfaces using focus variation microscopy. _Addit. Manuf._ 25, [365–389. https://​doi.​org/​10.​1016/j.​addma.​2018.​11.​013 (2019).](https://doi.org/10.1016/j.addma.2018.11.013) 12. Otani, Y., Kobayashi, F., Mizutani, Y., & Yoshizawa, T. Three-dimensional profilometry based on focus method by projecting grating pattern. _Proc. Opt. Inspect. Metrol. Non-Opt. Indust._ 7432, 278–283 (2009). 13. Okatani, I. S. & Deguchi, K. A method for fine registration of multiple view range images considering the measurement error properties. _Comput. Vis. Image Underst._ 87 [, 66–77. https://​doi.​org/​10.​1006/​cviu.​2002.​0983 (2002).](https://doi.org/10.1006/cviu.2002.0983) 14. Qian, J., Tao, T., Feng, S., Chen, Q. & Zuo, C. Motion-artifact-free dynamic 3D shape measurement with hybrid Fourier-transform phase-shifting profilometry. _Opt. Express_ 27 [, 2713–2731. https://​doi.​org/​10.​1364/​oe.​27.​002713 (2019).](https://doi.org/10.1364/oe.27.002713) 15. Feng, S. J., Chen, Q., Zuo, C. & Asundi, A. Fast three-dimensional measurements for dynamic scenes with shiny surfaces. _Opt._ _Commun._ 382 [, 18–27. https://​doi.​org/​10.​1016/j.​optcom.​2016.​07.​057 (2017).](https://doi.org/10.1016/j.optcom.2016.07.057) 16. Jiang, C. F. & Zhang, S. Absolute phase unwrapping for dual-camera system without embedding statistical features. _Opt. Eng._ [https://​doi.​org/​10.​1117/1.​oe.​56.9.​094114 (2017).](https://doi.org/10.1117/1.oe.56.9.094114) 17. Shi, W. Z. et al. Cardiac image super-resolution with global correspondence using multi-atlas PatchMatch. _Proc. Medical Image_ _Comput. Comput. Assist. Intervent._ 8151 [, 9–16. https://​doi.​org/​10.​1007/​978-3-​642-​40760-4_2 (2013).](https://doi.org/10.1007/978-3-642-40760-4_2) 18. Yang, Q., Yang, R., Davis, J., Nister, D. & Ieee. Spatial-depth super resolution for range images. _Proc. Comput. Vis. Pattern Recognit._ 2007 [, 1–8. https://​doi.​org/​10.​1109/​CVPR.​2007.​383211 (2007).](https://doi.org/10.1109/CVPR.2007.383211) 19. Walecki, P. & Taubin, G. Super-resolution 3-D laser scanning based on interval arithmetic. _IEEE Trans. Instrum. Meas._ 69, 8383– [8392. https://​doi.​org/​10.​1109/​tim.​2020.​29876​19 (2020).](https://doi.org/10.1109/tim.2020.2987619) 20. Donoho, D. L. Compressed sensing. _IEEE Trans. Inf. Theory_ 52 [, 1289–1306. https://​doi.​org/​10.​1109/​tit.​2006.​871582 (2006).](https://doi.org/10.1109/tit.2006.871582) 21. Candes, E. J. & Wakin, M. B. An introduction to compressive sampling. _IEEE Signal Process. Mag._ 25 [, 21–30. https://​doi.​org/​10.​](https://doi.org/10.1109/msp.2007.914731) [1109/​msp.​2007.​914731 (2008).](https://doi.org/10.1109/msp.2007.914731) 22. Massa, A., Rocca, P. & Oliveri, G. Compressive sensing in electromagnetics-a review. _IEEE Antennas Propag. Mag._ 57, 224–238. [https://​doi.​org/​10.​1109/​map.​2015.​23970​92 (2015).](https://doi.org/10.1109/map.2015.2397092) 23. Zhang, Y. _et al._ Exponential wavelet iterative shrinkage thresholding algorithm for compressed sensing magnetic resonance imag ing. _Inf. Sci._ 322 [, 115–132. https://​doi.​org/​10.​1016/j.​ins.​2015.​06.​017 (2015).](https://doi.org/10.1016/j.ins.2015.06.017) 24. Kovarik, L., Stevens, A., Liyu, A. & Browning, N. D. Implementing an accurate and rapid sparse sampling approach for low-dose atomic resolution STEM imaging. _Appl. Phys. Lett._ 109 [, 164102. https://​doi.​org/​10.​1063/1.​49657​20 (2016).](https://doi.org/10.1063/1.4965720) 25. Duarte, M. F. _et al._ Single-pixel imaging via compressive sampling. _IEEE Signal Process. Mag._ 25 [, 83–91. https://​doi.​org/​10.​1109/​](https://doi.org/10.1109/msp.2007.914730) [msp.​2007.​914730 (2008).](https://doi.org/10.1109/msp.2007.914730) 26. Edgar, M. P., Gibson, G. M. & Padgett, M. J. Principles and prospects for single-pixel imaging. _Nat. Photonics_ 13 [, 13–20. https://​](https://doi.org/10.1038/s41566-018-0300-7) [doi.​org/​10.​1038/​s41566-​018-​0300-7 (2019).](https://doi.org/10.1038/s41566-018-0300-7) 27. Sun, M.-J., Edgar, M. P., Phillips, D. B., Gibson, G. M. & Padgett, M. J. Improving the signal-to-noise ratio of single-pixel imaging using digital microscanning. _Opt. Express_ 24 [, 10476–10485. https://​doi.​org/​10.​1364/​OE.​24.​010476 (2016).](https://doi.org/10.1364/OE.24.010476) 28. Magalhaes, F., Araujo, F. M., Correia, M. V., Abolbashari, M. & Farahi, F. Active illumination single-pixel camera based on com pressive sensing. _Appl. Opt._ 50 [, 405–414. https://​doi.​org/​10.​1364/​ao.​50.​000405 (2011).](https://doi.org/10.1364/ao.50.000405) 29. Fujigaki, M., Morimoto, Y. & Gao, Q. Shape and displacement measurement by phase-shifting scanning moire method using digital micromirror device. _Proc. Third Int. Conf. Exp. Mech._ 4537 [, 362–365. https://​doi.​org/​10.​1117/​12.​468865 (2002).](https://doi.org/10.1117/12.468865) 30. Zhao, S.-B., Zhang, F.-M., Qu, X.-H., Chen, Z. & Zheng, S.-W. Removal of parasitic image due to metal specularity based on digital micromirror device camera. _Opt. Eng._ 53 [, 063105. https://​doi.​org/​10.​1117/1.​oe.​53.6.​063105 (2014).](https://doi.org/10.1117/1.oe.53.6.063105) 31. Zhao, S.-B., Liu, L.-Y. & Ma, M.-Y. Adaptive high-dynamic range three-dimensional shape measurement using DMD camera. _Ieee_ _Access_ 7 [, 67934–67943. https://​doi.​org/​10.​1109/​access.​2019.​29188​43 (2019).](https://doi.org/10.1109/access.2019.2918843) 32. Zhao, S. B., Ma, M. Y. & Guo, C. Accurate pixel-to-pixel alignment method with six-axis adjustment for computational photography. _IEEE Photonics J._ 10 [, 1–16. https://​doi.​org/​10.​1109/​jphot.​2018.​28390​93 (2018).](https://doi.org/10.1109/jphot.2018.2839093) 33. Sahoo, S. K. & Makur, A. Signal recovery from random measurements via extended orthogonal matching pursuit. _IEEE Trans._ _Signal Process._ 63 [, 2572–2581. https://​doi.​org/​10.​1109/​tsp.​2015.​24133​84 (2015).](https://doi.org/10.1109/tsp.2015.2413384) Acknowledgements This work was supported by the National Natural Science Foundation of China (grant no. 61801148), Natural Science Foundation of Heilongjiang Province (grant no. QC2016067), the University Nursing Program for Young Scholars with Creative Talents in Heilongjiang Province (grant no. UNPYSCT-2020187), the Special Projects in Key Fields of Ordinary Universities in Guangdong Province (grant no. 2021ZDZX1015) and Shenzhen basic research project (grant no. JCYJ20210324122813036). Author contributions S.Z. conceived the experiment and wrote the manuscript. S.Z. and Y.Y. conducted experiments, and performed data analysis. All authors contributed in the preparation and review of the final manuscript. Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to S.Z. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from [the copyright holder. To view a copy of this licence, visit http://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2022

섹션 본문 30문단 · 27,572자

(제목 없음)

1Three-Dimensional shape measurement has been confronted with the ambiguity on the steep surface. To address the problem, compressed sensing theory is employed to reconstruct phase shifting images in DMD camera. Specially, every CCD pixel in the region of interest is aligned to N × N DMD mirrors to construct DMD camera. The one-dimensional measurement matrices are chosen to collect the measured values on CCD pixel according to the directional judgement of original gradient image. Due to the enhancement of the spatial sampling frequency and the noise robustness, the reconstructed sinusoidal stripe images are utilized to obtain the three-dimensional model of the steep surface accurately. We measure the planes with various slopes to discuss the measurement capability. The comparative experiments show that our proposed method can correct the deformed phase and repair the defect on the steep surface.Spatial sampling frequency is the key factor in three-Dimensional shape measurement, which is limited by spatial resolution of sensor. Once the image resolution and the parameters of objective lens are fixed in traditional imaging technology, it is no way to enhance spatial sampling frequency of traditional imaging system. However, partial slope factor of complex surface is often beyond the capacity of spatial sample, which produces the sampling information loss in the region of steep surface. Take the involute gear for example, which is widely used in mechanical engineering. To ensure the stability of gear drive and the uniformity of load distribution, it is necessary to conduct three-Dimensional shape measurement to analyze geometric error such as pressure angle, thickness, addendum and dedendum. While 3D shape measurement is confronted with the challenge of the continuous increasement in the slope factor of the involutes profile. The limitation of spatial sampling frequency causes the unwrapped phase gap. The defect often manifests as these holes and fractures in the reconstruction surface. The same phenomenon occurs in other concave and convex parts such cam, hemispheroid and inner bore.There are some traditional strategies to measure the steep surface. Many researchers make use of coded structured light to enhance sub-pixel accuracy 1-4 . Fang Ji proposed an adaptive Canny edge detection method with two phases to distinguish the light stripes accurately 5 . Kai Liu embedded a period cue into the projected pattern to solve the depth ambiguity which caused by increasing the number of pattern stripes 6 . Zhan Song designed a gridline pattern to improve decoding accuracy of 3D sensing system 7 . Rosario Porras-Aguilar optimized greylevel projection patterns with a minimal gradient to reduce phase error near the border of the stripe 8 . However, since the reflectance variation on measured surface produces the ambiguity of intensity pattern, the sub-pixel accuracy estimations for structured light in above coding technologies could not avoid random errors of the ambiguity in 3D measurement 9 . In addition, focus variation technology is also a common way of measuring steep surface. Reinhard Danzl exploited the small depth of focus of an optical system with vertical scanning to enhance the maximum measurable slope angle 10 . Lewis Newton analyzed the measurement process control parameters to improve the quality of the focus variation measurement results 11 . Yukitoshi proposed a phaseshifting method merging into focus variation technology to analyze the contrast distribution by projecting grating pattern 12 . However, since the performance of focus variation measurement is significantly affected by the control precision of instrument vertical scanning process, the vertical scanning error along the optical axis restricts the measurement capability for the steep Surface. Imaging from different angle is an effective method to void steep surface in 3D measurement 13-16 . Although we can bypass the problem by employing the multiple view imaging structure, it is necessary to tackle the problem head on by enhancing imaging resolution of the traditional imager. Some researchers proposed interpolation algorithms to improve the measurement accuracy by up-sampling original image[17][18][19]. Wenzhe proposed algorithm for the accurate measurement of 3D cardiac OPEN

2Three-dimensional shape measurement for the steep surface using DMD camera Shoubo Zhao 1,2* & Yuqiang Yang 2 Three-Dimensional shape measurement has been confronted with the ambiguity on the steep surface. To address the problem, compressed sensing theory is employed to reconstruct phase shifting images in DMD camera. Specially, every CCD pixel in the region of interest is aligned to N × N DMD mirrors to construct DMD camera. The one-dimensional measurement matrices are chosen to collect the measured values on CCD pixel according to the directional judgement of original gradient image. Due to the enhancement of the spatial sampling frequency and the noise robustness, the reconstructed sinusoidal stripe images are utilized to obtain the three-dimensional model of the steep surface accurately. We measure the planes with various slopes to discuss the measurement capability. The comparative experiments show that our proposed method can correct the deformed phase and repair the defect on the steep surface.

3Spatial sampling frequency is the key factor in three-Dimensional shape measurement, which is limited by spatial resolution of sensor. Once the image resolution and the parameters of objective lens are fixed in traditional imaging technology, it is no way to enhance spatial sampling frequency of traditional imaging system. However, partial slope factor of complex surface is often beyond the capacity of spatial sample, which produces the sampling information loss in the region of steep surface. Take the involute gear for example, which is widely used in mechanical engineering. To ensure the stability of gear drive and the uniformity of load distribution, it is necessary to conduct three-Dimensional shape measurement to analyze geometric error such as pressure angle, thickness, addendum and dedendum. While 3D shape measurement is confronted with the challenge of the continuous increasement in the slope factor of the involutes profile. The limitation of spatial sampling frequency causes the unwrapped phase gap. The defect often manifests as these holes and fractures in the reconstruction surface. The same phenomenon occurs in other concave and convex parts such cam, hemispheroid and inner bore.

4There are some traditional strategies to measure the steep surface. Many researchers make use of coded structured light to enhance sub-pixel accuracy [1][2][3][4] . Fang Ji proposed an adaptive Canny edge detection method with two phases to distinguish the light stripes accurately 5 . Kai Liu embedded a period cue into the projected pattern to solve the depth ambiguity which caused by increasing the number of pattern stripes 6 . Zhan Song designed a gridline pattern to improve decoding accuracy of 3D sensing system 7 . Rosario Porras-Aguilar optimized greylevel projection patterns with a minimal gradient to reduce phase error near the border of the stripe 8 . However, since the reflectance variation on measured surface produces the ambiguity of intensity pattern, the sub-pixel accuracy estimations for structured light in above coding technologies could not avoid random errors of the ambiguity in 3D measurement 9 . In addition, focus variation technology is also a common way of measuring steep surface. Reinhard Danzl exploited the small depth of focus of an optical system with vertical scanning to enhance the maximum measurable slope angle 10 . Lewis Newton analyzed the measurement process control parameters to improve the quality of the focus variation measurement results 11 . Yukitoshi proposed a phaseshifting method merging into focus variation technology to analyze the contrast distribution by projecting grating pattern 12 . However, since the performance of focus variation measurement is significantly affected by the control precision of instrument vertical scanning process, the vertical scanning error along the optical axis restricts the measurement capability for the steep Surface. Imaging from different angle is an effective method to void steep surface in 3D measurement [13][14][15][16] . Although we can bypass the problem by employing the multiple view imaging structure, it is necessary to tackle the problem head on by enhancing imaging resolution of the traditional imager. Some researchers proposed interpolation algorithms to improve the measurement accuracy by up-sampling original image [17][18][19] . Wenzhe proposed algorithm for the accurate measurement of 3D cardiac www.nature.com/scientificreports/ function by reconstructing a super-resolution image within an expectation maximization framework 17 . Yang presented an iterative refinement approach to up-sample the original low-resolution image 18 . Peter proposed a method for super-resolution 3D laser scanning by which the length of the line segments along the camera rays can be tightened 19 . We pursue a goal that imaging resolution is improved to enhance spatial sampling frequency on the steep surface more effectively.

5Compressed sensing (CS) as a signal processing technology for under-sampling and reconstructing a signal has been widely applied on medical imaging, remote sensing and industrial inspection over the past decade, since the signal may be recovered with far fewer samples than the Nyquist-Shannon sampling theorem requires [20][21][22][23][24] . Marco in Rice University designed a single-pixel camera based on the spatial light modulator (SLM) with CS theory 25 . SLM is employed to provide the measurement matrices by being imposed the modulation pattern. The modulated light is then focused onto a single photon detector. Single photon detector integrates the inner product of measurement matrices and the measured object to yield a set of sampled values. The set of sampled values are used to recover the object image via minimization. As a result, the single-pixel camera can image the scene with higher spatial sampling frequency than the single photon detector 26 . An alternative advantage is that the single-pixel camera is robust in the presence of noise, since one or more measurements can be lost without corrupting the entire reconstruction in CS theory 27,28 . This paper are inspired by previous works on single-pixel imaging technology and CS theory 29 . We try to use DMD camera, which is merged with CS theory, to improve the three-Dimensional shape measurement for steep surface. DMD camera can process the spatial array of incident rays before image formation. This modulation improves the quality of phase-shifting fringe image by reshaping waveform. The compensation of phase error and the suppression of noise are beneficial to three-Dimensional shape measurement.

6The paper is organized as follows: Sect. 2 describes DMD camera architecture and alignment method. The measurement matrices for reconstruction of the sinusoidal stripe images are designed to measure three-dimensional shape in Sect. 3. Subsequently, experiments for 3D measurement are implemented to verify the performance of our method in Sect. 4. Finally, this research is concluded to discuss the advantage and limitation in Sect. 5.

DMD camera system.

7We constructed an imaging system called DMD camera that was applied on 3D shape measurement and noise removal 30,31 . The difference between DMD camera and single-pixel camera is mainly that the single photon detector is replaced by array charge coupled device (CCD). The schematic of DMD camera is shown in Fig. 1a. The system is composed of CCD, DMD, 6-DoF stage, image processor and four imaging lenses (Lens1, Lens2, Lens3 and Lens4). The pixel of CCD collects the reflected photons from the corresponding segment of DMD. 6-DoF assemble stage with piezoelectric actuators is conducted to adjust the angular and linear displacement of CCD according to the feedback from image processor. Zemax optics software is employed to analyze image quality. Figure 1b is the spot diagram of DMD camera system. The maximum radius of elliptical Airy spot is 1.894um. Imaging distortion on x-axis is inevitable due to Scheimpflug condition. Figure 1c,d are respectively the distortions on x-axis and y-axis. The distortion on x-axis is obviously bigger than the distortion on y-axis. And the linear growth is consistent with previous theoretical derivation in Ref 30 .

8The paraxial magnification of Lens1 can be scanned from × 0.1 to × 10. Piezoelectric actuators (Thorlabs NanoMax320) are provided for fine adjustment with 20 nm resolution. DMD (Discovery 4100) provides 8bpp and a resolution of 1920 × 1080; DMD mirror element is 7.6 × 7.6 microns. CCD (Teli-BU30) allows for 8 bits per pixel (bpp) of precision in RAW mode and a resolution of 768 × 576; CCD pixel is 7.4 × 7.4 microns in size.

9To utilize CS imaging technology, it is necessary that every CCD pixel in the region of interest (ROI) is assigned to multiple DMD mirrors. Consequently, DMD is divided into an array of segments, all of which contains N × N mirrors (N be integer). As shown in Fig. 2, a closed-loop system composed of piezoelectric actuators, CCD, Lens1, DMD and image processor is constructed to achieve accurate alignment between DMD and CCD, before DMD camera is on the working state. The alignment between DMD and CCD involves six degree of freedom (DoF) adjustments including three linear displacements on the horizontal axis x, the vertical axis y, the optical axis z and three angular displacements on pitch angle, yaw angle, roll angle. DMD can be regarded as one grating by programming the state of mirror array to form black and white line patterns. Likewise, CCD can be regarded as the alternative grating by using the subsampling technique. In other words, the pixels of the original image will be selected with the period of f , and unselected pixels will be interpolated by the neighbor selected pixel. The programming grating pattern is focused onto the subsampling grating pattern by Lens1 to product optical superposition phenomenon called moiré fringe. Moiré fringe image can be expressed as:

10where function Floor[•] is to get the integer towards minus infinity. (x, y) is the CCD pixel coordinate. I(x, y) is the original image captured by CCD. The symbol f denotes the period of grating in CCD. Shifting phase in the ith moiré image is 2iπ/f , i = 1, 2, …, f . By observing the moiré fringe image, the roll, the pitch and the yaw angle are adjusted to obtain the intermediate state that the moiré fringe parallels the original grating fringe.

11Moiré fringe image is used for phase calculation and neighbor interpolation in the image processor to obtain the moiré phase image and the profile-varying periodic fringe image respectively. The moiré phase image can be described by: www.nature.com/scientificreports/ By observing the moiré phase image, the paraxial magnification and z displacement along the optical axis are adjusted to make moiré phase distribution uniform. At this state, the frequency difference between the CCD and DMD equals to zero.

12The neighbor interpolation can be described by:

13where function Mod(divident, divisor) is to get the remainder. The symbol N * N is the mirror number in the segment of DMD. By observing the subsampling image, x-axis and y-axis displacements are adjusted to eliminate the initial phases of moiré fringe. Image processor can calculate the required displacements in 3-axis directions of PZT. PZT receives the feedback and execute the 3-axis adjustments until accurate alignment between the segment of DMD and the pixel of CCD is completed. The accurate alignment approach using the four-step procedure was discussed in detail in Ref 32 .

Method

14As an indispensable factor of CS theory, measurement matrix is employed to acquire the under-sampling image. Figure 3 is the procedure of image acquisition in DMD camera. We first choose an orthogonal square matrix with uniform distribution such as Hadamard matrix, Bernoulli random matrix and Gaussian random matrix to ensure the restricted isometry property (RIP). The orientation of measurement vector is determined by comparing the horizontal gradient g x and vertical gradient g y of CCD pixel in original object image. If the measurement vector is x orientation ( g x (x, y) < g y (x, y) ), measurement matrix H is obtained by randomly selecting M columns in the orthogonal square matrix. Alternatively, if the measurement vector is y orientation ( g x (x, y) > g y (x, y) ), where T H is the transpose of the matrix H . Since 3D measurement is implemented by projecting the structure light pattern with sinusoidal stripes in this research, discrete cosine transform basis is suitable for the sparse representation of the stripe image. Discrete cosine transform matrix is size N × N . The mirror number in the DMD segment is equal to the size of discrete cosine transform matrix . To reconstruct the original scene signal I x,y (n) , orthogonal matching pursuit (OMP) algorithm is utilized to solve the optimization problem of the L0-norm 33 .

15where the optimal solution ⌢ I x,y is the reconstructed vector of the original scene signal I x,y (n). We project the sinusoidal stripe and reconstruct it by applying CS theory on DMD camera. Figure 4 confirms the noise robustness and the enhancement of spatial sampling frequency. Figure 4a is the reconstructed sinusoidal stripe image. Green solid line is the cross section in the x direction. Black line in Fig. 4b is the intensity distributions of the projected sinusoidal stripe in the reconstructed image of DMD camera. Red line in Fig. 4b is the intensity distributions of the projected sinusoidal stripe in the traditional image with N times resolution respectively. The variable reflectivity and the multiple-reflection result in the sinusoidal stripe distortion which can be regarded as the random noise. The comparison shows that CS-based imaging method removes the noise effectively. Black ' + ' and red 'o' in Fig. 4c are the spatial samples in reconstructed image and the non-reconstructed image respectively. The reconstructed image has N times as many resolutions as the previous image. Obviously, DMD camera can support the high-resolution imaging by mapping one pixel to multiple mirrors. Merged with CS theory, it can capture sinusoidal stripe image with low noise to improve the quality of phase solution. In a word, proposed CS-based imaging method has advantage in 3D shape measurement for the steep surface.

16In this research, four-step phase shifting algorithm is employed to measure the steep surface. The DMD pattern sequence of four projections is identical to ensure the calculation of wrapped phase. The four reconstructed fringe images with step phase shift π/2 are expressed as

17where a x,y is the background intensity, and b x,y is the intensity amplitude. Thus the refined phase on the n th sub-pixel of point (x, y) is calculated by

18x,y (n) = a x,y + b x,y cos[φ( n N x, y) + π/2] ⌢ I 3

19x,y (n) = a x,y + b x,y cos[φ( n N x, y) + π] ⌢ I 4

20x,y (n) = a x,y + b x,y cos[φ( n N x, y) www.nature.com/scientificreports/ where φ( n N x, y) and φ(x, n N y) are a wrapped phase ranging from -π to π. To measure the depth information, it is necessary to unwrap the phase. In this paper, two-frequency temporal phase unwrapping algorithm is employed to obtain the unwrapped phase as follows:

21where φ x,y (n) is the normalized phase, φ l x,y (n) and φ l+1 x,y (n) are the wrapped phase with fringe frequency P/l and P/(l + 1) respectively, P is the normalized period. Function Mod[•] is to obtain the remainder when φ l+1

22x,y (n) − φ l x,y (n) is divided by 2π. k x,y (n) is the sequence number of the unwrapped phase period, function Round[•] is to get the nearest integer. To reduce the phase error and enhance the signal noise ratio (SNR) of the reconstructed form, median filtering is usually performed after Eq. (10). φ x,y (n) is the ultimate unwrapped phase ranging from 0 to 2kπ. The unwrapped phase will be converted to 3D coordinate by the phase-to-depth map. Based on above proposed method, three-dimensional shape measurement for the steep surface can be implemented.

Experiments

23To assess the ability to measure steep surface, we took the planes with various slopes as objects in 3D measurement. Figure 5 is the results that the planes with various slopes are measured by using our proposed method. Figure 5a is the experimental setup. The different color planes reconstructed in Fig. 5b refer to the surfaces with various slopes. The depth direction is identical to the primary optical axis of the objective lens. Figure 5c demonstrates the correlation that maximum measurable angle is gradually enhanced with the increasement of parameter N. Under the constraint of root mean square (RMS), the maximum measurable angle ⌢ α of sloping plane which is fitted by least square function approximation can be expressed by:

24where Z x,y is the measured depth value at point (x, y), and ⌢ Z x,y denotes the least squares approximating value. As Fig. 5 indicates, we can obtain that parameter N is determined by calculating the slope angle of measured surface on the following measurement. Table 1 shows the errors of the reconstructed plane with the different N. The measurement speed is mainly determined by the number of captured images. The measurement accuracy depends on the spatial resolution. Both of them are related with N. Considering the tradeoff between the captured times and reconstructed accuracy, N is selected from 2 to 5. The angle of the reconstructed sloping plane is 85 degrees. By fitting these planar point clouds using the least-squares method, the maximum surplus error E m is used to verify the reconstructed accuracy on the edge. The standard deviation σ illustrates that our method efficiently decreases the noise of the steep surface. Figure 6 is the phase distribution of the measured plane obtained by different methods. For comparison, we choose Zhan Song's method that the gridline pattern is designed to encode localization with sub-pixel accuracy and Rosario's method that generates a series of projection patterns with a minimal gradient in the intensity to reduce errors near the border 7,8 . The mirror number of 5 × 5 is used in our method. Red diagonal is the cross section of phase map. To align diamond-shaped DMD mirror, camera has been rotated 45 degrees clockwise. The errors of reconstructed plane with different methods are shown in Table 2. E a denotes the difference between the ground truth and the calculated position of fitted plane. These results indicate that proposed method has higher accuracy than other methods.

253D shape measurement for the involute gear is an appropriate application of proposed method. Since the tooth profile and the tooth root fillet determine the contact force when one gear is driving another gear, the force analysis demands to measure them accurately. To avoid the occlusion from neighbor teeth, we used the proposed method to measure the tooth profile and the tooth root fillet in Fig. 7b. Figure 7a is the measuring result of the gear teeth with traditional four-step phase shifting profilometry (PSP). The defects on the tooth profile and the tooth root fillet would result in the failure to analyze the force in Fig. 7a. The measuring result in Fig. 7b shows that our proposed method can eliminate those defects.

26We measured the rabbit model to verify the performance of proposed method in Fig. 8 too. There are many gaps on the edge of the reconstructed rabbit in Fig. 8a. It is difficult to reconstruct the acute characteristics of plaster model. Our method enhances the spatial resolution to improve the reconstructed performance on the acute angle edge. The reconstructed edge becomes plump in Fig. 8b. The comparative results in Figs. 7 and 8 indicate that our proposed method can improve 3D shape measurement for the steep surface to a certain extent. x,y (n)

27x,y (n) − φ l x,y (n), 2π] www.nature.com/scientificreports/ Four-step phase shifting profilometry requires 4 projecting patterns. To meet the two-frequency temporal phase unwrapping algorithm and four-step phase shifting profilometry, projector will give 8 sinusoidal stripes. For a complete measurement based on our method, 8 M captured times will be taken, M ≤ N . The number N determines the time consumption besides the reconstructed quality of CS, as shown in Table 3. In our experiment, CR (compressive rate) is 0.6 at least, e.g., if N was 5, M would be 3. Totally, camera will capture 24 images to complete one measurement.

Conclusion

28In this works, we presented the method that CS theory is used to capture phase shifting images in DMD camera to measure steep surface. Specially, DMD camera system that one CCD pixel can be assigned to multiple DMD mirrors was constructed. Two directional measurement matrices from the same orthogonal square matrix were used to modulate the DMD segments by judging the gradient direction of original image. Thus the sinusoidal stripe images with phase shifting π/2 were reconstructed to obtain the three-dimensional shape of the measured object. Finally, we measured the involute gear and the rabbit model to demonstrate that 3D shape measurement for the steep surface can be improved by our proposed method. It is obvious that the method in this paper has advantages in the noise robustness and the enhancement of spatial sampling frequency. However, the quality of reconstructed phase shifting images is limited by the compression ratio. To trade off the reconstructed quality against the time consumption, we did not adopt the measurement matrix with the dimension M × N 2 in classical CS theory. Furthermore, our method is able to reconstruct the three dimensional shape of the obtuse angle edge. The acute angle edge is difficult to measure due to the ambiguity of the edge. Our proposed method can be a compensation for other phase shifting profilometry technology, e.g., this method can merge with dual-camera www.nature.com/scientificreports/ www.nature.com/scientificreports/ PSP technology to enhance the measurement accuracy of steep surface further. Our group will focus the research on DMD scanning alignment method which would break through the limitation of DMD resolution in the future.

Data availability

29The datasets generated during and/or analyzed during the current study are available from the corresponding author on reasonable request. www.nature.com/scientificreports/ Publisher's note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

30Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http:// creat iveco mmons. org/ licen ses/ by/4. 0/.

참고문헌 33건

  1. Cardiac Image Super-Resolution with Global Correspondence Using Multi-Atlas PatchMatch Lecture notes in computer science · Springer Science+Business Media · 2013 10.1007/978-3-642-40760-4_2
  2. Active illumination single-pixel camera based on compressive sensing Applied Optics · Optica Publishing Group · 2011 10.1364/ao.50.000405
  3. A state of the art in structured light patterns for surface profilometry Pattern Recognition · Elsevier BV · 2010 10.1016/j.patcog.2010.03.004
  4. Signal Recovery from Random Measurements via Extended Orthogonal Matching Pursuit IEEE Transactions on Signal Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tsp.2015.2413384
  5. Three-dimensional profilometry based on focus method by projecting LC grating pattern Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2009 10.1117/12.827028
  6. &lt;title&gt;Shape and displacement measurement by phase-shifting scanning moire method using digital micromirror device&lt;/title&gt; Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2002 10.1117/12.468865
  7. Compressive Sensing in Electromagnetics - A Review IEEE Antennas and Propagation Magazine · Institute of Electrical and Electronics Engineers · 2015 10.1109/map.2015.2397092
  8. Focus Variation – a Robust Technology for High Resolution Optical 3D Surface Metrology Strojniški vestnik – Journal of Mechanical Engineering · University of Ljubljana · 2011 10.5545/sv-jme.2010.175
  9. Spatial-Depth Super Resolution for Range Images 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2007 10.1109/cvpr.2007.383211
  10. Model and error analysis for coded structured light measurement system Optical Engineering · SPIE · 2010 10.1117/1.3520056
  11. Period Coded Phase Shifting Strategy for Real–time 3-D Structured Light Illumination IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2155072
  12. An Introduction To Compressive Sampling IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2008 10.1109/msp.2007.914731
  13. Single-pixel imaging via compressive sampling IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2008 10.1109/msp.2007.914730
  14. &lt;title&gt;Dense 3D surface acquisition by structured light using off-the-shelf components&lt;/title&gt; Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2000 10.1117/12.410877
  15. Removal of parasitic image due to metal specularity based on digital micromirror device camera Optical Engineering · SPIE · 2014 10.1117/1.oe.53.6.063105
  16. Structured-light 3D surface imaging: a tutorial Advances in Optics and Photonics · Optica Publishing Group · 2011 10.1364/aop.3.000128
  17. Improving the signal-to-noise ratio of single-pixel imaging using digital microscanning Optics Express · Optica Publishing Group · 2016 10.1364/oe.24.010476
  18. Fast three-dimensional measurements for dynamic scenes with shiny surfaces Optics Communications · Elsevier BV · 2016 10.1016/j.optcom.2016.07.057
  19. Implementing an accurate and rapid sparse sampling approach for low-dose atomic resolution STEM imaging Applied Physics Letters · American Institute of Physics · 2016 10.1063/1.4965720
  20. Optimum projection pattern generation for grey-level coded structured light illumination systems Optics and Lasers in Engineering · Elsevier BV · 2016 10.1016/j.optlaseng.2016.12.009
  21. Absolute phase unwrapping for dual-camera system without embedding statistical features Optical Engineering · SPIE · 2017 10.1117/1.oe.56.9.094114
  22. A Method for Fine Registration of Multiple View Range Images Considering the Measurement Error Properties Computer Vision and Image Understanding · Elsevier BV · 2002 10.1006/cviu.2002.0983
  23. Accurate Pixel-to-Pixel Alignment Method With Six-Axis Adjustment for Computational Photography IEEE photonics journal · Institute of Electrical and Electronics Engineers · 2018 10.1109/jphot.2018.2839093
  24. Areal topography measurement of metal additive surfaces using focus variation microscopy Additive manufacturing · Elsevier BV · 2018 10.1016/j.addma.2018.11.013
  25. Principles and prospects for single-pixel imaging Nature Photonics · Nature Portfolio · 2018 10.1038/s41566-018-0300-7
  26. Motion-artifact-free dynamic 3D shape measurement with hybrid Fourier-transform phase-shifting profilometry Optics Express · Optica Publishing Group · 2019 10.1364/oe.27.002713
  27. DOE-based structured-light method for accurate 3D sensing Optics and Lasers in Engineering · Elsevier BV · 2019 10.1016/j.optlaseng.2019.02.009
  28. Dynamic Granularity Matrix Space Based Adaptive Edge Detection Method for Structured Light Stripes Mathematical Problems in Engineering · Hindawi Publishing Corporation · 2019 10.1155/2019/1959671
  29. Adaptive High-Dynamic Range Three-Dimensional Shape Measurement Using DMD Camera IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2918843
  30. Super-Resolution 3-D Laser Scanning Based on Interval Arithmetic IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.2987619
  31. Suppression method for strong interference from stray light in 3D imaging system of structured light Optical Engineering · SPIE · 2020 10.1117/1.oe.59.10.105106
  32. Compressed sensing IEEE Transactions on Information Theory · Institute of Electrical and Electronics Engineers · 2006 10.1109/tit.2006.871582
  33. Exponential Wavelet Iterative Shrinkage Thresholding Algorithm for compressed sensing magnetic resonance imaging Information Sciences · Elsevier BV · 2015 10.1016/j.ins.2015.06.017