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

Modeling the unified measurement uncertainty of deflectometric and plenoptic 3-D sensors

간접 관련 필름·전자재료 · (15) 디스플레이 패널재료 (11) 배리어 필름(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Mathias Ziebarth — Vision and Fusion Laboratory, Karlsruhe Institute of Technology, Karlsruhe, Germany
  2. Niclas Zeller — Faculty of Electrical Engineering and Information Technology, Karlsruhe University of Applied Sciences, Karlsruhe, Germany
  3. Michael Heizmann — Institut für Industrielle Informationstechnik, Karlsruhe Institute of Technology, Karlsruhe, Germany
  4. Franz Quint — Faculty of Electrical Engineering and Information Technology, Karlsruhe University of Applied Sciences, Karlsruhe, Germany
DOI
10.5194/jsss-7-517-2018
저널
Journal of sensors and sensor systems
발행년도
2018
발행기관
Copernicus Publications
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.5194/jsss-7-517-2018
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W2893390353

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
(11) 배리어 필름, (16) CPI(투명 폴리이미드)
R&D 측면
물성·성능 평가
확신도
0.70
근거 용어
deflectometric sensor, plenoptic sensor, 3-D measurement, surface properties, specularly to diffusely reflecting surfaces
판단 근거
이 논문은 광학 센서(deflectometric, plenoptic)를 이용해 물체 표면의 3차원 형상과 반사 특성을 측정하는 불확실성 모델을 다룹니다. 이는 코오롱인더스트리의 디스플레이용 필름(15)이나 투명 폴리이미드(16) 등 정밀한 표면 품질 검사가 필요한 제품의 물성 평가 및 자동화 검사 공정 기술에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
디스플레이 필름이나 인공피혁 등 고광택/저광택이 혼재된 기능성 소재의 표면 거칠기, 평탄도 및 결함 검사를 위한 광학 측정 시스템의 신뢰성 확보 및 최적화에 활용 가능합니다.
평가 입력
본문 72,809자 중 30,032자 발췌

초록

Abstract. In this paper we propose new models of two complementary optical sensors to obtain 2.5-D measurements of opaque surfaces: a deflectometric and a plenoptic sensor. The deflectometric sensor uses active triangulation and works best on specular surfaces, while the plenoptic sensor uses passive triangulation and works best on textured, diffusely reflecting surfaces. We propose models to describe the measurement uncertainties of the sensors for specularly to diffusely reflecting surfaces under consideration of typical disturbances like ambient light or vibration. The predicted measurement uncertainties of both sensors can be used to obtain optimized measurements uncertainties for varying surface properties on the basis of a combined sensor system. The models are validated exemplarily based on real measurements.

본문 72,809자

본문 펼치기
J. Sens. Sens. Syst., 7, 517–533, 2018 https://doi.org/10.5194/jsss-7-517-2018 © Author(s) 2018. This work is distributed under the Creative Commons Attribution 4.0 License. # Modeling the unified measurement uncertainty of deflectometric and plenoptic 3-D sensors Mathias Ziebarth <sup>1</sup> , Niclas Zeller <sup>2</sup> , Michael Heizmann <sup>3</sup> , and Franz Quint <sup>2</sup> 1Vision and Fusion Laboratory, Karlsruhe Institute of Technology, Karlsruhe, Germany 2Faculty of Electrical Engineering and Information Technology, Karlsruhe University of Applied Sciences, Karlsruhe, Germany 3Institut für Industrielle Informationstechnik, Karlsruhe Institute of Technology, Karlsruhe, Germany Correspondence: Mathias Ziebarth (mathias.ziebarth@kit.edu) Received: 13 October 2017 – Revised: 23 August 2018 – Accepted: 5 September 2018 – Published: 28 September 2018 Abstract. In this paper we propose new models of two complementary optical sensors to obtain 2.5-D measurements of opaque surfaces: a deflectometric and a plenoptic sensor. The deflectometric sensor uses active triangulation and works best on specular surfaces, while the plenoptic sensor uses passive triangulation and works best on textured, diffusely reflecting surfaces. We propose models to describe the measurement uncertainties of the sensors for specularly to diffusely reflecting surfaces under consideration of typical disturbances like ambient light or vibration. The predicted measurement uncertainties of both sensors can be used to obtain optimized measurements uncertainties for varying surface properties on the basis of a combined sensor system. The models are validated exemplarily based on real measurements. 1 Introduction Automated quality inspection of product surfaces requires a fast and robust sensor, capable of detecting all relevant defects without damaging the surface. Optical measurement techniques fulfill these requirements but are highly dependent on the surface properties. For example, pattern projection and passive stereoscopic methods require diffuse reflectance, while deflectometric methods depend on specular reflectance of the inspected surface. Many surfaces are partially specular or a mixture of diffusely and specularly reflecting parts and cannot be robustly measured with only one method. By combining several measurement methods into a single sensor system that adapts its algorithms to exploit the advantages of the single methods, we are capable of measuring surfaces with a large variety of surface properties. To demonstrate the principle, we propose uncertainty models for plenoptic and deflectometric sensors, and based on the models we simulate both sensors under similar circumstances on varying partially specular surfaces. 1.1 Related work Tutsch et al. (2011) give a good overview of optical 3-D measurement techniques with structured illumination that includes passive triangulation and deflectometry. The measurement uncertainty for the deflectometric sensor is based on the phase noise model from Fischer et al. (2012), which is itself based on parameters defined in the EMVA 1288 measurement standard by the European Machine Vision Association. Fiete and Paul (2014) describe a systematic approach to model the imaging chain using the optical transfer function, that will be used in Sect. 2. Plenoptic cameras have been used in computational imaging for several decades now. However, Perwaß and Wietzke (2012) proposed the first plenoptic camera for industrial applications. They commercialized their camera in the company Raytrix. In the recent years, several papers on the metric calibration of Raytrix cameras were published; see Johannsen et al. (2013), Heinze et al. (2016), Zeller et al. (2016), Strobl and Lingenauber (2016) and Zeller et al. (2017). Furthermore, the potential of plenoptic cameras with respect to 3-D measurement was derived analytically by Perwaß and Wietzke (2012) as well as Zeller et al. (2016) and Published by Copernicus Publications on behalf of the AMA Association for Sensor Technology 518 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors Table 1. Simulation parameters, with corresponding symbols (S) for deflectometry (D), plenoptic (P) and units (U). Parameter S D P U Geometry Camera distance _s_ 0 _._ 5 0 _._ 5 m Screen distance _r_ 0 _._ 5 m Viewing angle _α_ 90 90 deg Lens Focal length _f_ 16 16 mm Wavelength _λ_ 550 550 nm _f_ Number _F_ 2 _._ 8 2 _._ 8 Measurement range _�s_ 0 _._ 15 m MLA sensor distance _B_ 350 µm Micro lens aperture _D_ M 126 _._ 5 µm Phase shifting Mean exposure _β_ 0 _._ 5 Phase shifts _M_ 4 Sensor Overall system gain _K_ 0 _._ 25 DN/ _e_ <sup>−</sup> Dark noise _σ_ d 12 13 _e_ <sup>−</sup> Signal noise _σI_ 9 _._ 13 DN Saturation capacity _µe._ sat 15 13.5 k _e_ <sup>−</sup> Quantization 10 bit Pixel pitch _�c_ 6 _._ 45 5 _._ 5 µm Surface MTF Ideally specular _c_ 8 8 Mirror _c_ 3 _._ 8 3 _._ 8 High gloss _c_ 2 _._ 9 2 _._ 9 Low gloss _c_ 2 _._ 5 2 _._ 5 demonstrated experimentally by Heinze et al. (2016), Zeller et al. (2016), and Sardemann and Maas (2016). Nevertheless, all existing analytical evaluations considered the optical system only from a purely geometrical perspective, ignoring the effects of real optical systems as is done in this paper. 1.2 Outline First, in Sect. 2 we introduce the photometric properties of the measurement system by means of the spatial distribution of light and the modulation transfer function. In Sects. 3 and 4 we describe the deflectometric sensor and the plenoptic sensor and derive their measurement uncertainties. Then in Sect. 5 we compare the uncertainties for both methods. All plots shown in this paper use parameters from an exemplary setup given in Table 1. Finally, in Sect. 6 we present, by way of example, real measurements to validate the proposed models. 2 Photometry Deflectometry, as well as the plenoptic method, relies on the recognition of spatial light patterns to identify unique positions that can be triangulated. The reliability of this recognition depends on the pattern contrast. When the pattern contrast is very low, noise introduced by the camera dominates the pattern. In the following section we introduce a systematic approach to describe the pattern contrast and a reduction of this contrast depending on its spatial frequencies. Despite the 2-D nature of image-based measurements we decided to describe our approach in 1-D, since the direction has no impact on the results. 2.1 Fringe modulation 2.1.1 Deflectometry In deflectometry the camera integrates light emitted at some point _x_ by the screen _L_ scr( _x_ ) (radiance) and reflected by the surface (ignoring spectral dependency). The light _L_ cam( _m_ ) reaches the camera image plane at some point _m_ “smeared” by the screen itself, the reflection at the surface, the refraction and diffraction by the camera lens and the sensor itself. The smearing can be mathematically described as a convolution of the incoming light with the point spread function (PSF). We assume that the PSF is translation-invariant to the object and the sensor point: PSF( _x,m_ ) = PSF( _x_ - _m_ ) _._ (1) Now, the image radiance is the convolution of the screen radiance and the point spread functions of the screen (PSFscr( _x_ )), the surface (PSFsrf( _x_ )) and the camera (PSFcam( _x_ )): _L_ cam( _x_ ) = _L_ scr( _x_ ) × PSFscr( _x_ ) × PSFsrf( _x_ ) × PSFcam( _x_ ) _._ (2) Instead of using PSFs in the spatial domain, the imaging properties of optical systems can be described in the Fourier domain, depending on the spatial frequency _k_ . Then the optical transfer function (OTF), which is the Fourier transform of the PSF, is used instead. As we are only interested in modulation changes, we separate the OTF into modulation transfer function (MTF) and phase transfer function (PTF): OTF( _k_ ) = MTF( _k_ )e <sup>iPTF(</sup> <sup>_k_</sup> <sup>)</sup> _._ (3) Additionally, we normalize the MTF to 1 for the DC component: _M_ ( _k_ ) = MTF( _k_ ) _/_ MTF(0) _._ (4) J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 519 We will introduce the patterns shown on the screen _I_ scr( _x_ ) (radiant intensity) in Sect. 3.1. The radiant intensity from the screen is linked with the radiance from Eq. (2) by multiplication with the pixel size _A_ scr and the cosine of the incident angle _θ_ scr of the optical axis to the screen normal direction (which is approximately the same for all points on the screen for a small screen size compared to the screen distance): _I_ scr( _x_ scr) = _L_ scr( _x_ scr) _A_ scr cos( _θ_ scr) _._ (5) The radiance distribution _γ_ scr( _k_ scr) with the spatial frequency _k_ scr on the screen is the spectrum of the radiance ( _F_ {·} denotes the Fourier transform): _γ_ scr( _k_ scr) = | _F_ { _L_ scr( _x_ )}| _/_ | _F_ { _L_ scr( _x_ )}| _k_ scr=0 = | _F_ { _I_ scr( _x_ )}| _/_ | _F_ { _I_ scr( _x_ )}| _k_ scr=0 _._ The irradiance on the camera sensor is linked with the radiance from Eq. (2) by multiplication with the solid angle of the sensor pixel _�_ cam and the cosine of the incident angle _θ_ cam of the optical axis to the sensor normal direction (which again is approximately the same for all points on the sensor for a small sensor size compared to the camera distance): _E_ cam( _x_ cam) = _L_ cam( _x_ cam) _�_ cam cos( _θ_ cam) _._ (6) Now we obtain the irradiance distribution on the camera sensor, _γ_ cam( _k_ cam) = | _F_ { _L_ cam( _x_ )}| _/_ | _F_ { _L_ cam( _x_ )}| _k_ cam=0 = | _F_ { _E_ cam( _x_ )}| _/_ | _F_ { _E_ cam( _x_ )}| _k_ cam=0 _,_ as a product of the screen radiance distribution _γ_ scr( _k_ scr) and the MTFs: _γ_ cam( _k_ cam) = _γ_ scr( _k_ scr) · _M_ scr( _k_ scr) · _M_ srf( _k_ cam) - _M_ cam( _k_ cam) _._ (7) Note the usage of different spatial frequencies _k_ cam and _k_ scr. We will introduce the correspondence between camera and screen spatial frequencies for simple surface shapes in Sect. 3.4. In Sect. 5 we will discuss the optimum screen pattern, minimizing the measurement uncertainty. The screen and camera MTF can be measured in advance using a plane first-surface mirror with _M_ srf( _k_ cam) ≈ 1. If necessary, the camera MTF can be measured separately in advance using calibrated MTF targets and subsequently the screen MTF can be measured with the calibrated camera at close range to the screen; see Triantaphillidou and Jacobson (2004). The surface MTF _M_ srf depends on the surface roughness and position between screen and camera, so _M_ srf has to be measured for a fixed setup. 2.1.2 Plenoptic Things change for the passive plenoptic setup, where the surface itself is considered as an emitter of structured light. We assume that the surface itself reflects unstructured light from the environment depending on the surface texture _γ_ srf( _k_ srf). However, for surfaces which do not show perfect Lambertian reflectance, that surface texture is superimposed by the specular reflections on the surface and imaged and sensed by the plenoptic camera (described by _M_ cam( _k_ cam)) and lead to a radiance distribution _γ_ cam( _k_ cam) on the camera sensor. The superposition of the surface texture showing Lambertian reflectance with the specular reflections of unstructured light from the environment can be considered as a reduction of the signal-to-noise ratio (SNR) as it increases the noise level on the surface. Instead of increasing the noise level, we model this superposition as a spatial-frequency-dependent attenuation of the surface texture _γ_ srf( _k_ srf). Anyway, on the image sensor no absolute signal levels can be measured since they are equalized by the automatic exposure control of the camera. The relative attenuation of the surface texture _γ_ srf( _k_ srf) due to specular reflectance is modeled by a function that we call the Lambertian surface MTF _M_ <sup>�</sup> srf. Since this Lambertian surface MTF _M_ <sup>�</sup> srf( _k_ srf) models the deviation from a perfect Lambertian reflectance it behaves reciprocally to the surface MTF _M_ srf( _k_ srf) defined for the deflectometric setup. Hence, similar to Eq. (7) we obtain the following: _γ_ cam( _k_ cam) = _γ_ srf( _k_ srf) · _M_ <sup>�</sup> srf( _k_ srf) · _M_ cam( _k_ cam) _._ (8) In the best case for plenoptic measurements, the surface pattern consists of intensity steps with an modulation of 1 over a wide spatial frequency spectrum: _γ_ srf( _k_ srf) = 1 _._ (9) This pattern is superimposed by the specular reflection of pattern in the environment. Hence, in contrast to deflectometry, the specular reflection decreases the measurable patterns contrast for the plenoptic setup. A detailed definition of the surface MTF will be discussed in Sect. 2.5. 2.2 Camera MTF Following Fiete and Paul (2014) the camera OTF consists of the lens OTF and the sensor OTF. In the best case of a diffraction-limited optical system, the lens OTF is given by the following: _<u>k</u>_ _kc_ for _k_ <sup>_<u>k</u>_</sup> _c_ <sup>≤</sup> <sup>1</sup> 0 for _k_ <sup>_<u>k</u>_</sup> _c_ <sup>_>_</sup> <sup>1</sup> _k_ <sup>_<u>k</u>_</sup> _c_ <sup>_>_</sup> <sup>1</sup> <u>�2</u> 1 − <u>�</u> _<u>k</u>_ _kc_ <u>2</u> _π_ cos <sup>−1 �</sup> - - <sup>_<u>k</u>_</sup> _kc_ OTFlens( _k,λ_ ) =    for _k_ <sup>_<u>k</u>_</sup> (10) www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018 520 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 1 0 _._ 8 0 _._ 6 0 _._ 4 0 _._ 2 Diffraction <u>limit</u> Deflectometry Plenoptic _g_ = 0 _._ 5 m _g_ = 0 _._ 6 m _g_ = 0 _._ 7 m _<u>g</u>_ <u>=</u> <u>0</u> _<u>.</u>_ <u>8 m</u> _g_ = 0 _._ 9 m _g_ = 1 _._ 0 m 1 0 _._ 8 0 _._ 6 0 _._ 4 0 _._ 2 0 0 20 40 60 _k_ cam in 1 _/_ mm Figure 1. Camera MTF of deflectometric camera, plenoptic camera and camera with diffraction-limited lens. with _k_ = _k_ cam and with corresponding image distance _b_ . A point with size _�x_ and distance _g_ + _�g_ corresponds to a point with size _�_ - _c_ on the image plane with _�x_ <sup>_<u>�</u>_</sup> <sup><u>�</u></sup> <sup>_<u>c</u>_</sup> <sup>=</sup> _g_ + _<u>b�g</u>_ <sup>. The size of a point on the</sup> surface out of focus depends on the aperture size _�xD_ <sup>=</sup> _�gg_ <sup>.</sup> Eliminating _�x_ leads to 0 0 20 40 60 _k_ cam in 1 _/_ mm Figure 2. Deflectometric camera MTF for defocused image of screen points with 1.0 m distance and focal plane distances _g_ . _λf_ <sup>_<u>D</u>_</sup> <sup>=</sup> _λF_ <sup><u>1</u></sup> _kc_ = _λf_ <sup>_<u>D</u>_</sup> _λF_ <sup><u>1</u></sup> <sup>_._</sup> _F_ is the ratio of the focal length _f_ and the diameter _D_ of the entrance pupil and is commonly known in photography as the “ _f_ number”. Ignoring signal sampling, noise, quantization and anisotropy, the OTF of the sensor is given (with _k_ = _k_ cam) by the following: OTFsensor( _k_ ) = <sup><u>sin(</u></sup> <sup>_<u>π�ck</u>_</sup> <sup><u>)</u></sup> _._ (11) _π�ck_ The bandwidth of the sinc function depends on the aperture of a pixel on the sensor and is assumed to be equal to the pixel pitch _�c_ . The camera MTF is the composition of the lens OTF in Eq. (10) and the sensor OTF in Eq. (11) as follows: _M_ cam( _k_ cam) = |OTFlens( _k_ cam)| · |OTFsensor( _k_ cam)| _._ (12) In Fig. 1 we show the camera MTFs for the deflectometric and the plenoptic camera with lens MTFs as given in the manufacturer data sheet and sensor MTF derived from parameters in Table 1 in comparison with camera MTF for the same sensor and a diffraction-limited lens. 2.3 Defocus MTF The OTF introduced in the previous section describes a camera in focus; in this section we will discuss a camera out of focus. Let the camera be in focus at some object distance _g_ The OTF for an image out of focus depends on the size of this point (see Beyerer et al., 2012) and replaces the sensor OTF in Eq. (11), where _J_ 1 is the Bessel function of first kind and order: OTFsensor( _k_ ) = 2 <sup>_<u>J</u>_</sup> <sup><u>1(</u></sup> <sup>_<u>π�</u>_</sup> <sup><u>�</u></sup> <sup>_<u>ck</u>_</sup> <sup><u>)</u></sup> _._ (16) _π�_ - _ck_ Figure 2 shows the camera MTF of screen points with 1 _._ 0 m distance for several focus distances _g_ from the surface ( _g_ = 0 _._ 5 m) to the screen ( _g_ = 1 _._ 0 m). _<u>bD�g</u>_ _�_ - _c_ = _g_ ( _g_ + _�g_ ) <sup>_._</sup> (13) Using the thin lens equation _f_ <sup><u>1</u></sup> <sup>=</sup> _g_ <sup><u>1</u></sup> <sup>+</sup> _b_ <sup><u>1</u></sup> <sup>the image distance</sup> _b_ can be eliminated and we get the size for a point out of focus on the sensor: Using the thin lens equation _f_ <sup><u>1</u></sup> _g_ <sup><u>1</u></sup> <sup>+</sup> _b_ <sup><u>1</u></sup> _f_ <sup><u>1</u></sup> <sup>=</sup> _g_ <sup><u>1</u></sup> _<u>Df �g</u>_ _�_ - _c_ = ( _f_ - _g_ )( _g_ + _�g_ ) <sup>_._</sup> (14) The size of a point on the image plane _�_ - _c_ cannot be smaller than the camera pixel size _�c_, and thus we define it as follows: - _<u>Df �g</u>_ _�_ - _c_ := max ( _f_ - _g_ )( _g_ + _�g_ ) <sup>_,�c_</sup> _._ (15) J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 521 1 0 _._ 8 0 _._ 6 0 _._ 4 0 _._ 2 <u>1 µm</u> 5 µm 10 µm 50 µm 0 0 20 40 60 _k_ cam in 1 _/_ mm Figure 3. Motion blur MTF caused by camera motion in image space. 2.4 Motion blur In many situations the camera is shaking during exposure due to vibrations caused by heavy machines, etc. Fiete and Paul (2014) give an OTF for motion blur caused by a random movement of the camera during the exposure with standard deviation _σ_ mot: Figure 4. Image of a reflected pattern for five different surfaces ranging from high to low gloss for a pattern on the screen with spatial frequency _k_ cam = 1 mm <sup>−1</sup> . Note the modulation change from left (high gloss, _c_ = 3 _._ 8) to right (low gloss, _c_ = 2 _._ 5), where the pattern is almost invisible. 10 <sup>0</sup> _c_ = 8 _c_ = 3 _._ 9 _c_ = 2 _._ 9 _c_ = 2 _._ 5 OTFmotion = e <sup>−2</sup> <sup>_π_</sup> <sup>(</sup> <sup>_k_</sup> <sup>2</sup> cam <sup>2</sup> <sup>_σ_</sup> <sup>2</sup> mot <sup>2</sup> <sup>)</sup> _._ (17) 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 0 20 40 60 _k_ cam in 1 _/_ mm Of course, the measured surface may also be subject to vibrations, but due to the complexity of the implications of changing surface normals during exposure it is not covered here. The influence of translational camera motion blur on the MTF according to Eq. (17) is shown in Fig. 3. Note that the motion blur is related to the pixel pitch (here 6.45 µm), so motions during exposure smaller than half the pixel pitch in image space have almost no impact on the modulation. 2.5 Roughness With more surface roughness the reflectance decreases from specular to diffuse; see Fig. 4. Harvey et al. (2012) and Harvey (2013) describe the relation of surface roughness measured as root mean squared (RMS) surface height and the optical properties of the surface using total integrated scatter and the MTF. They observe that the RMS value has to be calculated within the relevant scale. However, this model seems to be valid only for very smooth surfaces, so in the following we propose a simple parametric model for the surface MTF: _M_ srf( _k_ cam) = e <sup>−10−</sup> <sup>_ck_</sup> <sup>cam</sup> _._ (18) Figure 5. Reflectance surface MTF for different surface gloss parameters. This matches the MTF measurements of the surfaces shown in Fig. 4, but has no dependency on physical parameters like the surface roughness. For each surface type, the parameter _c_ has to be estimated. The five surfaces shown in Fig. 4 have parameters in the range _c_ = 2 _._ 5 _..._ 3 _._ 8. As _M_ srf( _k_ cam) depends on the camera distance _s_ and the screen distance _r_, it has to be estimated again, if the setup changes. Figure 5 shows the surface MTF for different gloss factors _c_ . While deflectometry utilizes the specularity of the surface, passive triangulation approaches like plenoptic-camerabased methods rely on Lambertian reflectance. Hence, for the plenoptic camera we consider the specular component as an additional noise component and therefore model the Lambertian surface MTF _M_ <sup>�</sup> srf as follows: www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018 522 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 20 40 60 _k_ cam in 1 _/_ mm _<u>c</u>_ <u>=</u> <u>8</u> _c_ = 3 _._ 9 _c_ = 2 _._ 9 _c_ = 2 _._ 5 Figure 6. Lambertian surface MTF for different surface gloss parameters. _M_ �srf( _k_ cam) = 1 − _M_ srf( _k_ cam) = 1 − e <sup>−10−</sup> <sup>_ck_</sup> <sup>cam</sup> _._ (19) Figure 6 shows the Lambertian surface MTF for different gloss factors _c_ . 2.6 Ambient light In the previous section we described how surface roughness increases the amount of light scattered by the surface. If more ambient light is present in the scene, the light scattered in the direction of the camera also increases. This can be measured as the Michelson contrast, i.e., the ratio of the difference and the sum of the maximum and minimum radiance ( _L_ min _,L_ max). To visualize the influence of (constant, unstructured) ambient light, we assume that the radiance of the pattern, received by the camera, is increased by a constant offset _L_ amb, which leads to a modified surface MTF: _<u>L</u>_ <u>max</u> - _<u>L</u>_ <u>min</u> _M_ amb( _k_ cam) = _L_ max + _L_ min + 2 _L_ amb _,_ (20) radiance reflected into the camera. The contrast of a surface texture is influenced by the amount of specularly reflected light. 3 Deflectometry Deflectometry (see Werling et al., 2009), is a relatively inexpensive but powerful method for inspection and measurement of specular surfaces. A generic setup is shown in Fig. 7. The basic idea is to measure the surface normals by identifying the origin _x_ scr of each camera ray (going through _x_ cam and the optical center) that is reflected at the surface. A phase-shifting algorithm is used to identify this origin on the screen _x_ scr. We use _M_ _>_ 3 shifts of a cosine fringe pattern (as seen in Fig. 4) with frequency _k_ scr on the screen to identify the location of _x_ scr with subpixel uncertainty in one direction. The result of this algorithm is the phase _φ_ at the current screen point _x_ scr: _φ_ ( _x_ scr) = 2 _πk_ scr _x_ scr _._ (22) Hence, the measurement uncertainty of the camera ray origin on the screen _σx_ scr is given by the following: _σφ_ _σx_ scr = _._ (23) 2 _πk_ scr In the following section we will look at the phase-shifting algorithm and the phase noise model. 3.1 Phase shifting Let the origin _x_ scr of each camera ray be a point on a flat screen showing a sequence of _i_ = 1 _...M_ cosine patterns captured by the camera with intensity _I_ at the position _x_ cam on the image plane with relative mean exposure _β_ and relative pattern contrast _γ_ cam( _k_ cam): _Ii_ ( _x_ cam) = _βI_ sat(1 + _γ_ cam( _k_ cam) · cos( _φ_ ( _x_ scr) + _ψi_ )) _._ (24) _β_ and _γ_ cam are both constrained to 0 _..._ 1 and _β_ (1 + _γ_ cam) ≤ 1. The maximum exposure is the saturation capacity of the sensor _I_ sat. Each pattern _Ii_ ( _x_ scr) is shifted in _M_ equidistant steps by _ψi_ = <sup><u>2</u></sup> _M_ <sup>_<u>πi</u>_</sup> <sup>.</sup> <sup>In</sup> <sup>the</sup> <sup>case</sup> <sup>of</sup> <sup>a</sup> <sup>four-step</sup> <sup>phase</sup> <sup>shifting</sup> ( _M_ = 4) the phase is obtained from the captured intensities as follows: _M_ srf( _k_ cam) = _M_ amb( _k_ cam)e <sup>−10−</sup> <sup>_ck_</sup> <sup>cam</sup> _._ (21) If the ambient radiance reflected into the camera equals half the radiance of the maximum pattern intensity, the pattern contrast decreases to one-half of the original contrast. Calculating the influence of ambient radiance emitted by the surface requires knowing the location of the ambient light sources and the surface BRDF (bidirectional reflectance distribution function). On specular reflecting surfaces, ambient light does not influence the contrast of a reflected pattern, but more diffuse reflection increases the amount of ambient _x_ scr = <sup><u>1</u></sup> _k_ scr _φ_ = arctan - _<u>I</u>_ <u>3</u> - _<u>I</u>_ <u>1</u> _._ (25) _I_ 4 − _I_ 2 To get the absolute position on the screen _x_ scr the phase _φ_ ∈ (0 _..._ 2 _π_ ) has to be unwrapped by determining _m_ in Eq. (26). - _m_ + <sup>_<u>φ</u>_</sup> - _,_ with _m_ ∈ N _._ (26) 2 _π_ J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 523 Camera One popular phase-unwrapping method is the heterodyne method, which uses two different pattern frequencies. See Zuo et al. (2016) for comparison of phase-unwrapping methods. 3.2 Phase noise A model describing the phase noise of Eq. (25) for a symmetric _M_ -step algorithm was derived by Fischer et al. (2012): _σc_ _σθ_ _f_ Surface _<u>σα</u>_ _~~σz~~_ _σx_ scr _s_ _r_ Screen _σα/_ 2 <u>1</u> _γ_ cam _βµe._ sat <u>1</u> _βµe._ sat + _σ_ d <sup>2</sup> <sup>+</sup> 12 _K_ <sup>2</sup> <sup>_._</sup> (27) Figure 7. Measurement uncertainty _σz_ of a deflectometric system with lateral uncertainty _σx_ caused by discretization _σc_ on the camera sensor and uncertainty of the origin of incident rays from the screen _σx_ scr caused by the phase-shifting algorithm. The lateral uncertainty _σx_ is determined by the angular uncertainty _σθ_ and the distance _s_ of the camera to the surface (assuming only small angles between viewing and surface normal direction): _σx_ = _s_ tan _σθ_ _._ (31) The angular uncertainty of the camera _σθ_ is determined by the discretization on the sensor _σc_ = _�c_ and the focal length _f_ : tan _σθ_ = <sup>_<u>σc</u>_</sup> (32) _f_ <sup>_._</sup> Either the size of one projected pixel from Eqs. (31) and (32) or the defocus on the surface caused by focal plane distances _g_ ∈[ _s,r_ ] and the aperture size _D_ ( _σx_ <sup>_<u>D</u>_</sup> <sup>=</sup> _s_ - _<u>gg</u>_ <sup>)</sup> <sup>set</sup> the lower limit of lateral uncertainty: _σx_ _σφ_ = - <u>2</u> _M_ The model is based on the EMVA 1288 camera noise model by the European Machine Vision Association with the parameters of saturation capacity _µe._ sat, dark noise variance _σ_ d <sup>2</sup> and overall system gain _K_ . Hence, the authors show a way to estimate the EMVA 1288 camera parameters using a deflectometric setup. Since _β_ and _γ_ depend on local surface reflection properties, the authors propose a way to estimate the measurement uncertainty in Eq. (27) based on the observed intensities for each pixel separately: _σφ._ est = _<u>K</u>_ <u>2</u> <sup>(</sup> <sup>_y_</sup> <sup>1 +</sup> <sup>_y_</sup> <sup>2 +</sup> <sup>_y_</sup> <sup>3 +</sup> <sup>_y_</sup> <sup>4) +</sup> <sup>_R_</sup> <sup>4</sup> _._ (28) ( _y_ 1 − _y_ 3) <sup>2</sup> + ( _y_ 2 − _y_ 4) <sup>2</sup> Here _yi_ = _Ii_ - _µd_ denotes the physically correct intensities, _µd_ is the mean dark noise and _R_ 4 the noise term, defined as follows: d <sup>2</sup> <sup>−</sup> <sup>_µd_</sup> <sup>) +</sup> <sup><u>1</u></sup> 6 _R_ 4 = 2 _K_ <sup>2</sup> ( _σ_ d <sup>2</sup> <sup><u>1</u></sup> (29) 6 <sup>_._</sup> The two parameters influenced by the environment and the surface are _β_ and _γ_ . We can ensure _β_ = 0 _._ 5, if the camera exposure is chosen appropriately. The pattern contrast on the sensor _γ_ cam is given as product of the MTF functions for the screen, surface, ambient light, camera and motion blur in Sect. 2. The rest of the parameters can be either chosen ( _M_ ) or are known from the camera data sheet (EMVA 1288 parameters). Alternatively _σφ_ can be estimated directly from a measurement using Eq. (28). 3.3 Geometric properties In the following section the uncertainty of the surface height _σz_ will be derived. Let the surface be acquired in many small mirror segments. The width of each segment is the lateral uncertainty _σx_, and the slant uncertainty is _σα_ ; see Fig. 7. The uncertainty in surface height is then obtained by the following: The slant uncertainty of each surface segment _σα_ is determined by the screen _σx_ scr from Eq. (23) and the screen distance _r_ (assuming only small angles between direction of reflected ray and screen normal): tan _σα_ = <sup>_<u>σx</u>_</sup> <sup><u>scr</u></sup> _._ (34) _r_ Combining the above equations, the uncertainty of the surface height _σz_ (with tan( <sup>_<u>σ</u>_</sup> 2 <sup>_<u>α</u>_</sup> <sup>) ≈</sup> <sup><u>tan</u></sup> 2 <sup>_<u>σα</u>_</sup> ) is as follows: _._ (33) _σx_ := max - _<u>sσf</u>_ _<u>c</u>_ <sup>_,D s_</sup> <sup>−</sup> _g_ <sup>_<u>g</u>_</sup> - _<u>σα</u>_ _σz_ = _σx_ tan 2 _._ (30) _σz_ ≈ _σx_ _<u>σx</u>_ <u>scr</u> 2 _r_ <sup>_._</sup> (35) www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018 524 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 3.4 Surface shape Assume that the specular surface has a convex spherical shape. Then the screen appears smaller, which results in a smaller fringe period. In the simple case of a plane mirror, the effective fringe pattern frequency depends only on the distance from the camera to the screen: _k_ cam = _k_ scr _<u>r</u>_ + _<u>s</u>_ - _<u>f</u>_ _._ (36) _f_ If the surface is curved (at least piecewise) like a sphere with radius _R_, the imaging properties can be described by the imaging properties of a convex (positive radius) or concave (negative radius) mirror with focal length _fs_ = − <sup>_<u>R</u>_</sup> 2 <sup>:</sup> _B_ _b_ L0 _f_ _f_ _b_ L _<u>s</u>_ Figure 8. Image projection of a focused plenoptic camera in the Galilean mode. One object point is projected to multiple micro images on the sensor. Figure 9. Raw image recorded by a focused plenoptic camera. Different to a regular camera, a plenoptic camera has a micro lens array (MLA) placed in front of the sensor (see Fig. 8). Therefore, the raw image recorded by the camera is not one consistent central perspective image, but consists of thousands of circular micro images where each micro images shows only a small portion of the complete scene, as can be seen in the figure. From the magnified section, one can see that the same object point is projected to multiple neighboring micro images. point of the virtual image is projected onto multiple micro images on the sensor. In the figure each micro lens is represented by a small dot on the MLA plane. The micro image points corresponding to the point of the virtual image are at the intersections of the dashed lines with sensor. Figure 9 exemplarily shows the image formed on the sensor of focused plenoptic camera, consisting of a hexagonal grid of micro images. _k_ cam = _k_ scr _<u>f</u>_ <u>(</u> _<u>fs</u>_ - _<u>r</u>_ <u>) +</u> _<u>rs</u>_ - _<u>fs</u>_ <u>(</u> _<u>r</u>_ + _<u>s</u>_ <u>)</u> _f fs_ _._ (37) This equation has a pole at _fs_ = ( _f r_ - _rs_ ) _/_ ( _f_ - _r_ - _s_ ) for concave surfaces, where the screen is located in a caustic. Near this pole, even infinitely small changes of the screen pattern would lead to changes in the image plane, but this configuration is impractical for a real inspection task. 4 Plenoptic camera A plenoptic camera is a single sensor system which records a 4-D light-field representation of a scene in a single image. That means a point in the object space does not only correspond to a single image point in the image, as it would be for a regular camera, but to multiple image points. In other words, a plenoptic camera does not only capture a single ray emitted from a certain point in the object space but multiple light rays with different incident angles. Hence, the four dimensions describe two spatial dimensions and two angular dimensions. Even though plenoptic sensors for industrial applications are still expensive (see Raytrix GmbH, 2016), they rely on a quite simple idea. In general any industrial camera can be transformed into a plenoptic camera by placing a micro lens array (MLA) in front of the image sensor. The 4-D light field recorded by a plenoptic camera enables tasks like 3-D measurement or software-based refocusing after an image is captured. Industrial tasks for plenoptic cameras may include 3-D microscopy or the inspection of production parts. Here we describe the principle of plenoptic depth measurement based on the concept of a focused plenoptic camera developed by Lumsdaine and Georgiev (2009). As well as this, we formulate an uncertainty prediction model for the plenoptic depth measurement that relies on this concept. Figure 8 shows the imaging process of a focused plenoptic camera in the Galilean mode (see Lumsdaine and Georgiev, 2009). The main lens produces a virtual image of the real object at distance _b_ L behind the main lens. Due to the MLA a J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 525 Plenoptic camera _α_ Surface Figure 10. Plenoptic measurement setup. Expected measurement uncertainty can be predicted based on the given geometric setup, the surface pattern and the MTF of the plenoptic camera. The image distance _b_ L results from the object distance _s_ and the main lens focal length _f_ as defined by the thin lens equation: _b_ L = <sup>_<u>s</u>_</sup> <sup>·</sup> <sup>_<u>f</u>_</sup> (38) _s_ - _f_ <sup>_._</sup> Based on disparities _µ_, which can be measured in the micro images, one is able to calculate the image distance _b_ L and from that the respective object distance _s_ of a certain point, under the assumption that all intrinsic camera parameters are known; see Zeller et al. (2016). 4.1 Uncertainty prediction model In contrast to deflectometry, the plenoptic camera is a passive measurement system that relies on high-contrast patterns on the surface to be measured. Besides, the surface has to have Lambertian reflectance to obtain correct measurements. In the following we define a model to predict the measurement accuracy of the plenoptic camera for a certain measurement setup. This measurement setup is shown in Fig. 10. In analogy to deflectometry and to obtain a general definition of the surface contrast we define the surface structure as a fringe pattern similar to Eq. (24). Of course, the pattern on the surface which is captured by the camera will never be a perfect fringe pattern but can always be modeled as a mixture of frequencies. However, this formulation gives us the possibility to model the camera response dependent on the frequency _k_ srf of the surface pattern. In general, the structures to be measured on the surface are intensity steps and thus contain the complete frequency spectrum. In a local region one can consider the imaging process just as a scaling of the fringe pattern on the surface in combination with a frequency-dependent attenuation of the intensity modeled by the MTF of the imaging system. Therefore, by applying the assumption of being in a local region around a certain point, perspective distortion does not have to be considered. 4.1.1 Imaging scale In contrast to a regular camera, which can be defined mathematically by a pinhole camera model, the imaging scale of a plenoptic camera is not proportional to the distance between main lens and object _s_ . Instead, a plenoptic camera basically performs two perspective projections, one by the main lens from object space to the virtual image and one from the virtual image on the sensor. The scaling between object space and virtual image _s_ L is given by the following: Furthermore, one gets the scaling between virtual image and the micro images on the sensor as given by the following: _s_ ML = <sup>_<u>b</u>_</sup> <sup><u>L</u></sup> <sup>−</sup> <sup>_<u>b</u>_</sup> <sup><u>L0</u></sup> _._ (40) _B_ Here, _b_ L0 is the distance between MLA and main lens and _B_ is the distance between image sensor and MLA (see Fig. 8). Both scaling factors ( _s_ L and _s_ ML) behave reciprocally to each other. While an increasing object distance _s_ results in an increasing scaling factor _s_ L, the scaling factor _s_ ML decreases at the same time since the virtual image distance _b_ L is also decreasing. Besides the scaling of the pattern due to perspective projection, the fringe pattern is compressed if the viewing angle of the plenoptic camera _α_ is not 90 <sup>◦</sup> to the surface (see Fig. 10). This results in an additional scaling of the pattern _sα_ defined as follows: <u>1</u> _sα_ = | sin( _α_ )| <sup>_,_</sup> (41) with 0 _< α < π_ . Based on the defined scaling factors one can define the following relations between surface _x_ srf, virtual image _x_ vim and sensor coordinates _x_ cam: _x_ srf = _sα_ - _s_ L · _x_ vim _,_ (42) _x_ vim = _s_ ML · _x_ cam _,_ (43) _x_ srf = _sα_ - _s_ L · _s_ ML · _x_ cam _._ (44) Hence, we obtain the following frequencies of the fringe pattern in the virtual image _k_ vim and on the sensor _k_ cam, respectively: _s_ L = <sup>_<u>s</u>_</sup> _b_ L _._ (39) www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018 526 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors _k_ cam = _sα_ - _s_ L · _s_ ML · _k_ srf _,_ (45) _k_ vim = _sα_ - _s_ L · _k_ srf _._ (46) Following the Shannon–Nyquist sampling theorem we can calculate from Eq. (45) an upper boundary for the fringe pattern frequency on the surface. Thus, to avoid aliasing, the following condition has to hold: <u>1</u> _�c_ _>_ ! 2 _k_ cam _._ (47) Here, _�c_ is the pixel pitch of the sensor. After inserting Eq. (45) into Eq. (47) and rearranging it, one receives the following condition for the frequency of the fringe pattern on the surface to assure aliasing-free sampling: <u>1</u> _k_ srf _<_ _._ (48) 2 · _�c_ - _sα_ - _s_ L · _s_ ML 4.1.2 Attenuation Similarly to in deflectometry, we can describe the imaging properties of the plenoptic camera by its MTF. In a plenoptic camera, we have a sequence of two optical systems: the main lens and the MLA. This results in an MTF of the complete plenoptic camera that depends on the distance to the surface. This can be formulated as the sequence of two MTFs with a nonlinear connection between _k_ vim and _k_ cam: _γ_ cam( _k_ cam) = _γ_ srf( _k_ srf) · _M_ L( _k_ vim) · _M_ ML( _k_ cam) _._ (49) For simplification, we approximate the complete MTF _M_ cam( _k_ cam) as follows: _γ_ cam( _k_ cam) ≈ _γ_ srf( _k_ srf) · _M_ cam( _k_ cam) _._ (50) By this approximation we neglect the depth scaling from the virtual image on the sensor and therefore consider _M_ L and _M_ ML to be defined on a common frequency axis. However, the error made by the approximation is negligible for object distances that are large with respect to the focal length _f_ L and short depth ranges, which have to be measured. An alternative would be to define and measure a depth-dependent MTF. For a Raytrix camera the MLA consists of three different types of micro lenses to increase the depth of field of the camera. Therefore, strictly speaking one has to define three different MTFs for the respective micro lens types. For the simulations in Sect. 5 we assume a plenoptic camera MTF _M_ cam( _k_ cam) as defined in Eq. (12). However, it might be worth investigating differences in the camera MTF of a plenoptic camera in comparison to a regular monocular camera. = _β_ - _I_ sat · _γ_ cam · 2 _π_ - ∥ _k_ cam∥ _._ (51) The MLA in a plenoptic camera is in most cases arranged on a hexagonal grid. Therefore, for each micro lens multiple epipolar lines in all possible directions are obtained. Figure 11 exemplarily shows the epipolar lines in a hexagonally arranged MLA. Thus, in the following we equate the maximum absolute gradient _g_ cam with the maximum absolute gradient along one specific epipolar line. Zeller et al. (2016) show that one can approximate the variance of the estimated disparity _σµ_ <sup>2</sup> <sup>based on the variance</sup> Figure 11. Epipolar lines in a hexagonally arranged MLA. Due to the reason that the micro images are rectified to each other by nature, the epipolar line for a pair of micro images is defined by the vector between the respective principal points. The figure exemplarily shows one epipolar line (blue) for the five shortest stereo baseline distances (red). 4.1.3 Measurement uncertainty Depth measurements are obtained based on disparities _µ_, which are estimated from the recorded micro images. The accuracy of the estimated disparity mainly relies on the intensity gradient along the epipolar line as well as the additive signal noise of the image sensor. The signal noise already combines noise sources like dark noise and quantization noise. For a given fringe pattern _I_ srf( _x_ srf), as defined in Eq. (24), on the surface to be measured one obtains a maximum absolute intensity gradient on the image sensor as follows: _g_ cam = max ���� _<u>∂I</u>_ <u>cam</u> _∂x_ cam( _<u>x</u>_ <u>cam)</u> ���� J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 527 of the signal noise _σI_ <sup>2</sup> <sup>and</sup> <sup>the</sup> <sup>maximum</sup> <sup>gradient</sup> <sup>along</sup> <sup>the</sup> epipolar line _g_ cam as follows: _c_ = 8 _c_ = 3 _._ 9 _~~c~~_ ~~=~~ ~~2~~ _~~.~~_ ~~9~~ _c_ = 2 _._ 5 _µ_ <sup>2</sup> <sup>=</sup> <sup>2 ·</sup> <sup>_σ_</sup> _<u>I</u>_ <sup>2</sup> _σµ_ <sup>2</sup> _<u>I</u>_ <sup>·</sup> <sup>_σ_</sup> <sup>2</sup> _g_ cam <sup>2</sup> _._ (52) As defined in the EMVA1288 standard, the signal noise _σI_ results from the system gain _K_, the dark noise _σ_ d, the quantization noise _σ_ q, the gray value _µy_ and the dark signal _µy._ dark as follows: _σI_ <sup>2</sup> _I_ <sup>2</sup> <sup>=</sup> <sup>_K_</sup> <sup>2</sup> <sup>_σ_</sup> d <sup>2</sup> d <sup>2</sup> <sup>+</sup> <sup>_σ_</sup> q <sup>2</sup> q <sup>2</sup> <sup>+</sup> <sup>_K_</sup> <sup>(</sup> <sup>_µy_</sup> <sup>−</sup> <sup>_µy._</sup> <sup>dark)</sup> <sup>_._</sup> (53) 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> However, for later simulations we use an average value derived from the camera specification as given in Table 1. Eq. (52) states that for a high-intensity gradient along the epipolar line the disparity can be determined more accurately than for a low-intensity gradient. For multifocus plenoptic cameras (see Perwaß and Wietzke, 2012), like those from the manufacturer Raytrix, the MLA consists of different types of micro lenses with different focal lengths. Therefore, for a certain object distance one type of micro lenses will produce focused micro images while the micro images of another type will be out of focus. This effect of differently focused micro images also has to be considered when estimating the disparity _µ_ . How this focus disparity error can be modeled is shown by Zeller et al. (2017). For simplification, we do not consider the focus disparity error here. Besides, by choosing an appropriate camera setup one can assure that a pair of focused micro images is always present for a given object point. Based on the theory of propagation of uncertainties, one is able to calculate the standard deviation of the measured object distance _σs_ from the disparity standard deviation _σµ_ . The relationship between _σµ_ and _σs_ is given by the following: _σs_ = <sup><u>(</u></sup> <sup>_<u>s</u>_</sup> <sup>· (</sup> <sup>_<u>f</u>_</sup> <sup>−</sup> <sup>_<u>b</u>_</sup> <sup><u>L0) +</u></sup> <sup>_<u>f</u>_</sup> <sup>·</sup> <sup>_<u>b</u>_</sup> <sup><u>L0)2</u></sup> - _σµ._ (54) _κ_ - _D_ M · _f_ <sup>2</sup> - _B_ Equation (54) was derived by Zeller et al. (2017). Here _D_ M defines the diameter of a micro lens, while _κ_ is a normalized distance factor between the two micro lenses used for disparity estimation, i.e., _κ_ is one for two directly adjacent micro lenses. In a hexagonal arrangement of the MLA the smallest 10 values of _κ_ are 1.00, 1.73, 2.00, 2.65, 3.00, 3.46, 3.61, 4.00, 4.36 and 4.58. Perwaß and Wietzke (2012) showed that, depending on the distance between virtual image and MLA plane _v_, it can be guaranteed that micro lenses further apart still see the same object point and therefore a larger value of _κ_ can be chosen. 5 Simulation In the following section, we present simulation results for the measurement uncertainty of both the deflectometric and the 0 20 40 60 _k_ cam in 1 _/_ mm Figure 12. Deflectometric measurement uncertainty of the phase on the screen, showing a pattern with fringe frequency translating to _k_ cam when reflected onto the sensor. plenoptic sensor. They are derived for an exemplary setup shown in Table 1. We chose similar settings for both systems to make realistic comparisons. All simulation results that depend on the spatial frequency of some pattern are shown as a function of the spatial frequency on the image plane _k_ cam. The frequency limits have been chosen according to the Shannon–Nyquist sampling theorem: the highest detectable frequency is limited by the pixel pitch, i.e., _k_ cam _<_ 2 _�c_ <u>1</u> <sup>. The</sup> surface MTF parameters for the low and high gloss and mirror were estimated from real measurements, the value for the ideally specular surface should be _c_ →∞, but for numerical reasons we chose _c_ = 8. For plots containing results of both sensors, we plotted results in blue for the deflectometric sensor and results in red for the plenoptic sensor. 5.1 Simulation results – deflectometry We assume that the overall shape of the reflecting surface is flat. Thus we can apply Eq. (36) to estimate the spatial frequency on the sensor _k_ cam from the frequency on the screen _k_ scr. The first result, depicted in Fig. 12, shows the uncertainty of the phase noise model using Eq. (27) for different surface gloss parameters. It can be seen that the uncertainty increases rapidly with the pattern frequency when the surface is not perfectly specularly reflecting. In contrast, higher spatial frequencies (and thereby shorter period lengths) in Eq. (23) decrease the uncertainty in estimating the screen position _x_ scr. These two opposite effects lead to a unique pattern frequency, where the resulting measurement uncertainty on the screen reaches a minimum for some frequency _k_ scropt and a given roughness. As the uncertainty of the surface slant _σα_ given in Eq. (34) directly depends on the uncertainty of the screen position, we can www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018 528 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>6</sup> 20 40 60 _k_ cam in 1 _/_ mm _g_ = 0 _._ 6 m, _c_ = 8 _g_ = 1 _._ 0 m, _c_ = 3 _._ 9 _g_ = 0 _._ 7 m, _c_ = 8 _g_ = 1 _._ 0 m, _c_ = 2 _._ 9 _g_ = 0 _._ 8 m, _c_ = 8 _g_ = 1 _._ 0 m, _c_ = 2 _._ 5 _g_ = 0 _._ 9 m, _c_ = 8 _g_ = 1 _._ 0 m, _c_ = 8 Figure 13. Deflectometric measurement uncertainty of the surface normal for several focus distances and surface MTF parameters. also see these minima in Fig. 13. Here the measurement uncertainty of the surface normal dependent on the pattern frequency _k_ cam is shown for different focus distances _g_ as well as different surface gloss factors _c_ . For focus distances _g <_ 1 m the image of the screen is defocused and the Bessel function from Eq. (16) starts to appear. Please note that the curves in Fig. 13 with _g_ ≤ 0 _._ 8 m are subject to aliasing artifacts. It can be seen that _k_ scropt changes with the surface properties. With higher surface gloss _c_ and the focus on the screen ( _g_ → 1 m), higher frequencies can still be resolved on the sensor, and hence _k_ scropt increases and leads to lower measurement uncertainties. Of course, the camera sensor still limits the highest resolvable frequency on the sensor: 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>6</sup> 10 <sup>_−_</sup> <sup>7</sup> 10 <sup>_−_</sup> <sup>8</sup> 10 <sup>_−_</sup> <sup>9</sup> 10 <sup>_−_</sup> <sup>10</sup> 0 20 40 60 _k_ cam in 1 _/_ mm _~~c~~_ ~~=~~ ~~8~~ _c_ = 3 _._ 9 _~~c~~_ ~~=~~ ~~2~~ _~~.~~_ ~~9~~ _c_ = 2 _._ 5 _~~c~~_ ~~=~~ ~~8~~ _c_ = 3 _._ 9 _<u>c</u>_ <u>=</u> <u>2</u> _<u>.</u>_ <u>9</u> _c_ = 2 _._ 5 Figure 14. Measurement uncertainty of plenoptic and deflectometric sensor for several surface MTF parameters. The pattern is shown on the surface and also shown on the screen. Both pattern frequencies are given relative to the camera sensor image frequencies _k_ cam. 5.2 Simulation results – plenoptic camera Similar to Sect. 5.1 we performed different simulations based on the measurement uncertainty model defined in Sect. 4.1. We chose a plenoptic sensor similar to the Raytrix R5 camera (see Table 1). In Table 1 the measurement range _�s_ defines the range around the surface distance _s_ for which measurements can be obtained. To obtain depth measurements from a plenoptic camera it has to be assured that a point is visible in at least two micro images. This is the case for virtual depth _v_ ≥ _v_ min = 2 _._ 0 ( _v_ := <sup>_<u>b</u>_</sup> <sup><u>L0</u></sup> _B_ <sup><u>−</u></sup> <sup>_<u>b</u>_</sup> <sup><u>L</u></sup> ; see Fig. 9) and thus for _b_ L ≥ _b_ Lmin = _b_ L0 + 2 _._ 0 _B_ for a hexagonally arranged MLA (see Perwaß and Wietzke, 2012). Hence, _b_ L0 is chosen such that _s_ + _�s_ results in an image distance _b_ L ≥ _b_ Lmin. Therefore, for all distances larger than _s_ + _�s_ no depth measurements can be obtained. By minimizing the measurement range _�s_ one is able to improve the measurement accuracy. 5.2.1 Focal length Figure 15 shows simulation results for a perfect Lambertian surface. Here we varied the focal length _f_ while all other parameters are as given in Table 1. As can be seen from the figure, the depth uncertainty of the camera can be significantly improved by increasing the focal length. However, there exists an optimum focal length around _f_ = 50 mm for which the best measurement uncertainty is obtained. The reason for that is the reciprocal behavior between image distance _b_ L and object distance _s_, which is dependent on the focal length _f_ . Hence, as long as the distance _s_ is much larger than the focal length _f_ the depth uncertainty can be improved by increas _k_ cam( _k_ scropt ) _<_ ! 2 _�c_ <u>1</u> <sup>_._</sup> (55) In Fig 14 we show the measurement uncertainty from Eq. (35) in _z_ direction next to the results of the plenoptic sensor. Note the triangle model shown in Fig. 7 that connects the uncertainties of surface height _σz_, position on the surface _σx_ and angle of the reflected ray _σα_ . Since both uncertainties _σx_ and _σα_ are very small, the final measurement uncertainty _σz_ is very small as well (for plane surface mirrors in the nanometer range). Also note that the surface height is not measured directly, so _σz_ is only valid for local changes. The whole surface can be reconstructed by integration over the surface gradients, but along with the integration, the uncertainties sum up to larger errors for a global surface shape. J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 529 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> _f_ = 100 mm _f_ = 50 mm _<u>f</u>_ <u>=</u> <u>30 mm</u> _f_ = 16 mm 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>7</sup> 10 <sup>_−_</sup> <sup>9</sup> _σ_ mot = 0 µm _σ_ mot = 5 µm _<mark>σ</mark>_ <u><mark>m</mark></u> <u>ot</u> <mark>=</mark> 10 <u><mark>µm</mark></u> _σ_ mot = 50 µm _σ_ mot = 0 µm _σ_ mot = 5 µm _<u>σ</u>_ <u>mot</u> <u>=</u> <u>10 µm</u> _σ_ mot = 50 µm 0 20 40 60 _k_ cam in 1 _/_ mm 10 <sup>_−_</sup> <sup>4</sup> 0 20 40 60 _k_ cam in 1 _/_ mm Figure 15. Measurement uncertainty of the plenoptic sensor for different main lens focal lengths _f_ and a perfect diffusely reflecting surface. ing the focal length. However, at approximately _s_ ≈ 10· _f_ the best accuracy is obtained, as can be seen from the figure. For the following simulations, which model the effect of motion blur as well as different surface roughnesses, the focal length was set to _f_ = 16 mm. 5.3 Simulation results – motion blur Figure 16 shows the effect of different amounts of camera vibration for both systems. The resulting motion blur behaves as a low-pass filter which is modeled as given in Sect. 2.4. Due to the implicit low-pass filtering the optimal pattern is shifted to a lower frequency. Thus, the introduced blur significantly degrades the measurement results. 5.4 Simulation results – surface roughness While increasing surface roughness has a negative effect on the deflectometric measurement results, due to less specular reflectance, it has the opposite effect on the plenoptic measurements. For the plenoptic setup best results are expected at a completely Lambertian reflectance (surface gloss _c_ → 0). Noise is introduced by the specular reflection component. Figure 14 shows the expected measurement results for surfaces with different specularity. Finally, in Fig. 17 we show the measurement uncertainty as a function of the surface gloss _c_ and the focus distance _g_, assuming (for deflectometry) that the optimal pattern _k_ scr = _k_ scropt is chosen for each case. For high-gloss surfaces the deflectometric sensor is most accurate with the camera focused on the screen. For lowgloss surfaces it is preferable to focus on the surface and use patterns with low spatial frequencies. 10 <sup>_−_</sup> <sup>8</sup> 0 2 4 6 8 _c_ Figure 17. Measurement uncertainty of surface height _σz_ for a screen showing an optimal pattern with fringe frequency _k_ scropt for low- to high-gloss surfaces _c_ and a focus on surface _g_ = 0 _._ 5 m to a focus on screen _g_ = 1 _._ 0 m in comparison with the plenoptic measurement uncertainty _σ_ s. 6 Experiments In this paper we present quite complex and complete mathematical models for the measurement process of a deflectometric and a plenoptic sensor system, although for such complex models it is almost impossible to validate them entirely. Hence, we validate our models on the basis of only two distinct setups: one for deflectometry and one for plenoptic. For both measurement systems we use the same configurations as given in Table 1. However, one cannot guarantee Figure 16. Measurement uncertainty of plenoptic and deflectometric sensor with motion blur _σ_ mot. The pattern is shown on the surface and also on the screen. Both pattern frequencies are given relative to the camera sensor _k_ cam. 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>6</sup> 10 <sup>_−_</sup> <sup>7</sup> _<u>g</u>_ <u>=</u> <u><mark>0</mark></u> _<u><mark>.</mark></u>_ <u>5</u> _~~<u>g</u>~~_ ~~<u>=</u>~~ ~~<u>0</u>~~ _~~<u>.</u>~~_ ~~<u>6</u>~~ _~~g~~_ ~~=~~ ~~0~~ _~~.~~_ ~~7~~ _~~<u>g</u>~~_ ~~<u>=</u>~~ ~~<u>0</u>~~ _~~<u>.</u>~~_ ~~<u>8</u>~~ _~~<u>g</u>~~_ ~~<u>=</u>~~ ~~<u>0</u>~~ _~~<u>.</u>~~_ ~~<u>9</u>~~ _~~<u>g</u>~~_ ~~<u>=</u>~~ ~~<u>1</u>~~ _~~<u>.</u>~~_ ~~<u>0</u>~~ _~~<u>g</u>~~_ ~~<u>=</u>~~ ~~<u>0</u>~~ _~~<u>.</u>~~_ ~~<u>5</u>~~ www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018 530 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors Figure 18. Case of a thermometer used to validate the proposed sensor models. The case consists of different surfaces with different reflectance properties. that all parameters match exactly, due to manufacturing tolerances as well as manual adjustments. For both sensor systems we obtain measurements based on the case of a thermometer that consists of surfaces with different reflectance properties. This case is shown in Fig. 18. Since for the plenoptic camera we cannot influence the contrast of the surface pattern on the case, we performed a second experiment, in which we generated a fringe pattern on a screen and recorded this pattern with the plenoptic camera. Here, we measured the measurement uncertainty for different fringe frequencies. This setup is shown in Fig. 24. 6.1 Experimental results – deflectometry We used the deflectometric sensor shown in Fig. 19 to validate the measurement uncertainty of the surface slant _σα_ . The measurements of the thermometer surface were taken using 24 different pattern frequencies in the range _k_ cam = 0 _._ 127–32.7 mm <sup>−1</sup> with a logarithmic step size and under dark and bright illumination conditions. For dark illumination conditions there is no ambient light, apart from stray light emitted by the screen. For bright conditions there is additional light from fluorescent ceiling lamps. Fringe modulation _γ_ cam was obtained using the captured images under both illumination conditions. Figure 20 shows the fringe modulation for one low and one high pattern frequency. The red boxes mark areas on the surface with different reflection properties: case and display. Measurements are taken per pixel and then averaged over these two areas. On the one hand, we calculated a spline interpolation _γ_ cam( _k_ cam) from the fringe modulation measurements, as shown in Fig. 21. Using this continuous function of _γ_ cam( _k_ cam) and the sen Figure 19. Setup used to measure the measurement uncertainty of the deflectometric sensor for different frequencies of the fringe pattern on the surface. _k_ cam = 0 _._ 255 mm <sup>_−_</sup> <sup>1</sup> 3 2 1 0 0 1 2 3 _x_ cam in mm 0 _γ_ cam 0 1 2 3 _x_ cam in mm _·_ 10 <sup>_−_</sup> <sup>2</sup> 0 _._ 2 0 _._ 15 0 _._ 1 0 _._ 05 _k_ cam = 8 _._ 16 mm <sup>_−_</sup> <sup>1</sup> 5 4 3 2 1 0 _γ_ cam Figure 20. Measurements of _γ_ cam for different pattern frequencies under dark conditions. sor model we are able to predict a continuous function for _σα_ ( _k_ cam). On the other hand, we estimated _σ_ ˆ _φ_ for each pattern frequency from the standard deviation over nine phase measurements. Two phase measurements are shown in Fig. 22. Hence, using Eq. (34), we calculated the standard deviation of the surface slant _σ_ ˆ _α_ and compared it to the predicted measurement uncertainty as shown in Fig. 23. The predicted uncertainties for _σα_ slightly underestimate the measurement standard deviation, especially for the surface case. This may be caused by inaccurate measurements or interpolation of _γ_ cam. At _k_ cam ≈ 1 _e_ −3 mm <sup>−1</sup> the measurement noise is dropping, because the standard deviation of the phase _σ_ ˆ _φ_ is limited to 2 _π_, while the frequency in Eq. (23) is increasing. Apart from this, the model approximates the uncertainty of the display surface slant very well. J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 531 1 0 _._ 8 0 _._ 6 0 _._ 4 0 _._ 2 Case dark Display dark <u>Case</u> bright <u>D</u> ~~isplay~~ ~~bright~~ 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> Case dark Display dark ~~Case~~ ~~bright~~ Display bright 0 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>0</sup> 10 <sup>1</sup> _k_ cam in 1 _/_ mm Figure 21. Measurements of the surface MTF (points) and extrapolated data (lines) for two areas on the surface (display and case) and two illumination conditions (dark and bright surrounding). 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>0</sup> 10 <sup>1</sup> _k_ cam in 1 _/_ mm Figure 23. Comparison of the predicted measurement uncertainty (lines) and standard deviation (points) of _σα_ using the deflectometric measurement model. Figure 24. Setup used to measure the measurement uncertainty of the plenoptic camera for different frequencies of the fringe pattern on the surface. frequency the standard deviation seems to increase slightly. However, both effects are plausible. For low frequencies, the gradient in the image is just not high enough to obtain reliable depth estimates, and hence no measurements at all or only a few measurements are obtained. Thus, too few measurements do not allow us to calculate reliable statistics. Due to the periodic pattern, for high frequencies one obtains ambiguous stereo matches in neighboring micro images. Hence, the depth estimation has a higher number of outliers. However, the standard deviation _σ_ ˆs behaves similarly to that predicted by the presented model, as shown in Fig. 15. Due to the fact that we have now accurate MTF for the screen used in this experiment and the ambient light can only be _k_ cam = 0 _._ 255 mm <sup>_−_</sup> <sup>1</sup> 3 2 1 0 0 1 2 3 _x_ cam in mm _k_ cam = 8 _._ 16 mm <sup>_−_</sup> <sup>1</sup> 0 1 2 3 _x_ cam in mm _ϕ_ 3 _._ 14 0 _−_ 3 _._ 14 Figure 22. Measurements of _φ_ for different pattern frequencies under dark conditions. Measurement noise increases with the pattern frequency, depending on the surface reflectance. 6.2 Experimental results – plenoptic camera Using the setup which is shown in Fig. 24 we recorded sets of images at different fringe frequencies. We recorded images at 10 different frequencies starting at a screen frequency _k_ scr = _e_ −3pixel <sup>−1</sup> up to _k_ scr = _e_ −1pixel <sup>−1</sup> with a logarithmic step size. For each frequency we recorded 20 images, which we used to calculate the measurement statistics empirically. To obtain the frequencies _k_ cam of the fringe pattern in the camera image we calculated the discrete Fourier transform (DFT) of a single image and detected the peak of the first harmonic. This way a scaling factor from _k_ scr to _k_ cam is obtained. Figure 25 shows the mean empirical standard deviation _σ_ ˆs of the measured distance _s_ for a pixel in the depth map. Different than expected, we obtain a very low standard deviation for the smaller frequency. Furthermore, for the highest www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018 532 M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 10 <sup>_−_</sup> <sup>1</sup> <sup>_._</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>1</sup> <sup>_._</sup> <sup>6</sup> 10 <sup>_−_</sup> <sup>1</sup> <sup>_._</sup> <sup>8</sup> 10 <sup>_−_</sup> <sup>2</sup> 0 2 4 6 8 10 _k_ cam in 1 _/_ mm Figure 25. Measurement uncertainty of the plenoptic sensor for different main lens focal lengths _f_ and a perfect diffusely reflecting surface. Figure 26. Case recorded by the plenoptic camera. Intensity (a) image and depth map (b) calculated from the recordings of the plenoptic camera. influenced to some degree, we cannot validate the model on a more quantitative basis. Figure 26 shows the reconstructed intensity image of the case recorded by the plenoptic camera. Here, one can still slightly see the borders of the micro images, which are a little bit darker than the center. In contrast to the deflectometric setup, we are not able to validate our model based on the recordings of this case, since we are not able to influence the pattern on the surface of the case. However, we still measured the empirical standard deviation for two different positions on the case. Here, the mean standard deviation is calculated based on a set of 40 images for all valid points seen in Fig. 26b. We used all valid points on the display and only those valid points on the case around the “Min/Max” inscription. For the display we measured a mean standard deviation of 8.8 mm and for the inscription a mean standard deviation of 12.8 mm. Intuitively one would expect to obtain a higher uncertainty for the display than for the inscription on the case. However, the depth estimation is already filtering out uncertain estimates, which leads to a sparser depth map on the display. This sparsity must also be taken into account when rating the results. However, as can be seen from deflectometry, both the case and its display are not perfect Lambertian surfaces. Hence, the obtained accuracy conforms quite well to the simulations shown in Fig. 17. 7 Conclusions In this paper we proposed two models to predict the measurement uncertainty of a deflectometric and a plenoptic sensor. Based on our introduced models, we have shown that, for a given measurement setup, there exists an optimum fringe pattern that results in the lowest measurement uncertainty. In case of the deflectometric sensor, the achieved height measurement uncertainty ranges between 1 and 100 nm if the surface is at least partially specular. In contrast the measurement uncertainty of the plenoptic sensor on a perfect diffusely reflecting and textured surface can be as low as several micrometers, depending on the measurement setup. While the deflectometric sensor has much lower uncertainty for surface changes (3 orders of magnitude for partially specular surfaces), it measures surface normals instead of distances, which have to be integrated to obtain the surface height. The plenoptic measurement could help to regularize this integration by providing a relatively rough but robust distance measure. While the simulation shows plausible results for the proposed models, we furthermore were able to validate the models exemplarily by real measurements. Data availability. The raw image data can be made available upon request. Author contributions. MZ and his supervisor MH developed the theory and evaluation for deflectometry, and NZ and his supervisor FQ did the same for the plenoptic sensor. Competing interests. The authors declare that they have no conflict of interest. Special issue statement. This article is part of the special issue “Evaluating measurement data and uncertainty”. It is not associated with a conference. J Sens Sens Syst 7 517–533 2018 www j-sens-sens-syst net/7/517/2018/ M. Ziebarth et al.: Measurement uncertainty of deflectometric and plenoptic sensors 533 Acknowledgements. This work was financed by BadenWürttemberg Stiftung gGmbH. This is an updated and revised version of a paper written in the German language and published in “Technisches Messen 84 (2017) 2” in 2017. It is published in JSSS with the kind permission of the publisher De Gruyter. Edited by: Klaus-Dieter Sommer Reviewed by: five anonymous referees References Beyerer, J., Puente León, F., and Frese, C.: Automatische Sichtprüfung: Grundlagen, Methoden und Praxis der Bildgewinnung und Bildauswertung, Springer, Berlin Heidel[berg, https://doi.org/10.1007/978-3-642-23966-3, 2012.](https://doi.org/10.1007/978-3-642-23966-3) European Machine Vision Association: EMVA Standard 1288 Standard for Characterization of Image Sensors and Cameras, Release 3.1, 30 December, 2016. Fiete, R. D. and Paul, B. D.: Modeling the optical transfer func tion in the imaging chain, Opt. Eng., 53, 083103-1 – 083103-29, [https://doi.org/10.1117/1.OE.53.8.083103, 2014.](https://doi.org/10.1117/1.OE.53.8.083103) Fischer, M., Petz, M., and Tutsch, R.: Vorhersage des Phasenrauschens in optischen Messsystemen mit strukturierter Beleuchtung, Tech. Mess., 79, 451–458, [https://doi.org/10.1524/teme.2012.0256, 2012.](https://doi.org/10.1524/teme.2012.0256) Harvey, J. E.: Parametric analysis of the effect of scattered light upon the modulation transfer function, Opt. Eng., 52, 073110– [073110, https://doi.org/10.1117/1.OE.52.7.073110, 2013.](https://doi.org/10.1117/1.OE.52.7.073110) Harvey, J. E., Schröder, S., Choi, N., and Duparré, A.: Total inte grated scatter from surfaces with arbitrary roughness, correlation widths, and incident angles, Opt. Eng., 51, 013402-1–013402-11, [https://doi.org/10.1117/1.OE.51.1.013402, 2012.](https://doi.org/10.1117/1.OE.51.1.013402) Heinze, C., Spyropoulos, S., Hussmann, S., and Perwaß, C.: Au tomated Robust Metric Calibration Algorithm for Multifocus Plenoptic Cameras, IEEE T. Instrum. Meas., 65, 1197–1205, [https://doi.org/10.1109/TIM.2015.2507412, 2016.](https://doi.org/10.1109/TIM.2015.2507412) Johannsen, O., Heinze, C., Goldlücke, B., and Perwaß, C.: On the calibration of focused plenoptic cameras, in: Time-ofFlight and Depth Imaging : Sensors, Algorithms, and Applications, no. 8200 in Lecture notes in computer science, Springer, [https://doi.org/10.1007/978-3-642-44964-2_15, 2013.](https://doi.org/10.1007/978-3-642-44964-2_15) Lumsdaine, A. and Georgiev, T.: The Focused Plenoptic Camera, in: IEEE International Conference on Computational Photography (ICCP), 1–8, available at: [http://ieeexplore.ieee.org/xpl/](http://ieeexplore.ieee.org/xpl/articleDetails.jsp?reload=true&arnumber=5559008) [articleDetails.jsp?reload=true&arnumber=5559008](http://ieeexplore.ieee.org/xpl/articleDetails.jsp?reload=true&arnumber=5559008) (last access: 25 April 2017), 2009. Perwaß, C. and Wietzke, L.: Single lens 3D-camera with ex tended depth-of-field, in: Proc. SPIE 8291, Human Vision and Electronic Imaging XVII, available at: [http://proceedings.](http://proceedings.spiedigitallibrary.org/proceeding.aspx?articleid=1283425) [spiedigitallibrary.org/proceeding.aspx?articleid=1283425](http://proceedings.spiedigitallibrary.org/proceeding.aspx?articleid=1283425) (last access: 25 April 2017), 2012. [Raytrix GmbH: 3D light field camera technology, available at: http:](http://www.raytrix.de/) [//www.raytrix.de/ (last access: 25 April 2017), 2016.](http://www.raytrix.de/) Sardemann, H. and Maas, H.-G.: On the accuracy poten tial of focused plenoptic camera range determination in long distance operation, ISPRS J. Photogramm., 114, 1–9, [https://doi.org/10.1016/j.isprsjprs.2016.01.012, 2016.](https://doi.org/10.1016/j.isprsjprs.2016.01.012) Strobl, K. H. and Lingenauber, M.: Stepwise calibration of focused plenoptic cameras, Computer Vision and Image Understanding, [145, 140–147, https://doi.org/10.1016/j.cviu.2015.12.010, 2016.](https://doi.org/10.1016/j.cviu.2015.12.010) Triantaphillidou, S. and Jacobson, R. E.: Measurements of the modulation transfer function of image displays, J. Imaging Sci. Techn., 48, 58–65, 2004. Tutsch, R., Petz, M., and Fischer, M.: Optical three-dimensional metrology with structured illumination, Opt. Eng., 50, 101507, [https://doi.org/10.1117/1.3578448, 2011.](https://doi.org/10.1117/1.3578448) Werling, S., Mai, M., Heizmann, M., and Beyerer, J.: Inspection of specular and partially specular surfaces, Metrol. Meas. Syst., 16, 415–431, 2009. Zeller, N., Quint, F., and Stilla, U.: Depth estimation and camera calibration of a focused plenoptic camera for visual odometry, ISPRS J. Photogramm., 118, 83–100, [https://doi.org/10.1016/j.isprsjprs.2016.04.010, 2016.](https://doi.org/10.1016/j.isprsjprs.2016.04.010) Zeller, N., Quint, F., and Stilla, U.: From the Calibration of a Light Field Camera to Direct Plenoptic Odometry, IEEE J. Sel. Top. [Signa., https://doi.org/10.1109/JSTSP.2017.2737965, 2017.](https://doi.org/10.1109/JSTSP.2017.2737965) Zuo, C., Huang, L., Zhang, M., Chen, Q., and Asundi, A.: Tem poral phase unwrapping algorithms for fringe projection profilometry: A comparative review, Opt. Laser. Eng., 85, 84–103, [https://doi.org/10.1016/j.optlaseng.2016.04.022, 2016.](https://doi.org/10.1016/j.optlaseng.2016.04.022) www j-sens-sens-syst net/7/517/2018/ J Sens Sens Syst 7 517–533 2018

섹션 본문 154문단 · 47,972자

(제목 없음)

1In this paper we propose new models of two complementary optical sensors to obtain 2.5-D measurements of opaque surfaces: a deflectometric and a plenoptic sensor.The deflectometric sensor uses active triangulation and works best on specular surfaces, while the plenoptic sensor uses passive triangulation and works best on textured, diffusely reflecting surfaces.We propose models to describe the measurement uncertainties of the sensors for specularly to diffusely reflecting surfaces under consideration of typical disturbances like ambient light or vibration.The predicted measurement uncertainties of both sensors can be used to obtain optimized measurements uncertainties for varying surface properties on the basis of a combined sensor system.The models are validated exemplarily based on real measurements.

Introduction

2Automated quality inspection of product surfaces requires a fast and robust sensor, capable of detecting all relevant defects without damaging the surface.Optical measurement techniques fulfill these requirements but are highly dependent on the surface properties.For example, pattern projection and passive stereoscopic methods require diffuse reflectance, while deflectometric methods depend on specular reflectance of the inspected surface.Many surfaces are partially specular or a mixture of diffusely and specularly reflecting parts and cannot be robustly measured with only one method.By combining several measurement methods into a single sensor system that adapts its algorithms to exploit the advantages of the single methods, we are capable of measuring surfaces with a large variety of surface properties.To demonstrate the principle, we propose uncertainty models for plenoptic and deflectometric sensors, and based on the models we simulate both sensors under similar circumstances on varying partially specular surfaces.

31.1 Related work Tutsch et al. (2011) give a good overview of optical 3-D measurement techniques with structured illumination that includes passive triangulation and deflectometry.The measurement uncertainty for the deflectometric sensor is based on the phase noise model from Fischer et al. (2012), which is itself based on parameters defined in the EMVA 1288 measurement standard by the European Machine Vision Association.Fiete and Paul (2014) describe a systematic approach to model the imaging chain using the optical transfer function, that will be used in Sect. 2.

4Plenoptic cameras have been used in computational imaging for several decades now.However, Perwaß and Wietzke (2012) proposed the first plenoptic camera for industrial applications.They commercialized their camera in the company Raytrix.In the recent years, several papers on the metric calibration of Raytrix cameras were published; see Johannsen et al. (2013), Heinze et al. (2016), Zeller et al. (2016), Strobl and Lingenauber (2016) and Zeller et al. (2017).Furthermore, the potential of plenoptic cameras with respect to 3-D measurement was derived analytically by Perwaß and Wietzke (2012) as well as Zeller et al. (2016) and

5Published by Copernicus Publications on behalf of the AMA Association for Sensor Technology.demonstrated experimentally by Heinze et al. (2016), Zeller et al. (2016), and Sardemann and Maas (2016).Nevertheless, all existing analytical evaluations considered the optical system only from a purely geometrical perspective, ignoring the effects of real optical systems as is done in this paper.

Outline

6First, in Sect. 2 we introduce the photometric properties of the measurement system by means of the spatial distribution of light and the modulation transfer function.In Sects. 3 and 4 we describe the deflectometric sensor and the plenoptic sensor and derive their measurement uncertainties.Then in Sect. 5 we compare the uncertainties for both methods.All plots shown in this paper use parameters from an exemplary setup given in Table 1.Finally, in Sect.6 we present, by way of example, real measurements to validate the proposed models.

Photometry

7Deflectometry, as well as the plenoptic method, relies on the recognition of spatial light patterns to identify unique positions that can be triangulated.The reliability of this recognition depends on the pattern contrast.When the pattern contrast is very low, noise introduced by the camera dominates the pattern.In the following section we introduce a systematic approach to describe the pattern contrast and a reduction of this contrast depending on its spatial frequencies.Despite the 2-D nature of image-based measurements we decided to describe our approach in 1-D, since the direction has no impact on the results.

Deflectometry

8In deflectometry the camera integrates light emitted at some point x by the screen L scr (x) (radiance) and reflected by the surface (ignoring spectral dependency).The light L cam (m) reaches the camera image plane at some point m "smeared" by the screen itself, the reflection at the surface, the refraction and diffraction by the camera lens and the sensor itself.The smearing can be mathematically described as a convolution of the incoming light with the point spread function (PSF).We assume that the PSF is translation-invariant to the object and the sensor point:

9Now, the image radiance is the convolution of the screen radiance and the point spread functions of the screen (PSF scr (x)), the surface (PSF srf (x)) and the camera (PSF cam (x)):

10Instead of using PSFs in the spatial domain, the imaging properties of optical systems can be described in the Fourier domain, depending on the spatial frequency k.Then the optical transfer function (OTF), which is the Fourier transform of the PSF, is used instead.As we are only interested in modulation changes, we separate the OTF into modulation transfer function (MTF) and phase transfer function (PTF): (k) .

11(3)

12Additionally, we normalize the MTF to 1 for the DC component:

13We will introduce the patterns shown on the screen I scr (x) (radiant intensity) in Sect.3.1.The radiant intensity from the screen is linked with the radiance from Eq. ( 2) by multiplication with the pixel size A scr and the cosine of the incident angle θ scr of the optical axis to the screen normal direction (which is approximately the same for all points on the screen for a small screen size compared to the screen distance):

14I scr (x scr ) = L scr (x scr )A scr cos(θ scr ).

15(5)

16The radiance distribution γ scr (k scr ) with the spatial frequency k scr on the screen is the spectrum of the radiance (F{•} denotes the Fourier transform):

17The irradiance on the camera sensor is linked with the radiance from Eq. ( 2) by multiplication with the solid angle of the sensor pixel cam and the cosine of the incident angle θ cam of the optical axis to the sensor normal direction (which again is approximately the same for all points on the sensor for a small sensor size compared to the camera distance):

18Now we obtain the irradiance distribution on the camera sensor,

19as a product of the screen radiance distribution γ scr (k scr ) and the MTFs:

20Note the usage of different spatial frequencies k cam and k scr .We will introduce the correspondence between camera and screen spatial frequencies for simple surface shapes in Sect.3.4.In Sect. 5 we will discuss the optimum screen pattern, minimizing the measurement uncertainty.The screen and camera MTF can be measured in advance using a plane first-surface mirror with M srf (k cam ) ≈ 1.If necessary, the camera MTF can be measured separately in advance using calibrated MTF targets and subsequently the screen MTF can be measured with the calibrated camera at close range to the screen; see Triantaphillidou and Jacobson (2004).The surface MTF M srf depends on the surface roughness and position between screen and camera, so M srf has to be measured for a fixed setup.

Plenoptic

21Things change for the passive plenoptic setup, where the surface itself is considered as an emitter of structured light.We assume that the surface itself reflects unstructured light from the environment depending on the surface texture γ srf (k srf ).However, for surfaces which do not show perfect Lambertian reflectance, that surface texture is superimposed by the specular reflections on the surface and imaged and sensed by the plenoptic camera (described by M cam (k cam )) and lead to a radiance distribution γ cam (k cam ) on the camera sensor.The superposition of the surface texture showing Lambertian reflectance with the specular reflections of unstructured light from the environment can be considered as a reduction of the signal-to-noise ratio (SNR) as it increases the noise level on the surface.Instead of increasing the noise level, we model this superposition as a spatial-frequency-dependent attenuation of the surface texture γ srf (k srf ).Anyway, on the image sensor no absolute signal levels can be measured since they are equalized by the automatic exposure control of the camera.The relative attenuation of the surface texture γ srf (k srf ) due to specular reflectance is modeled by a function that we call the Lambertian surface MTF M srf .Since this Lambertian surface MTF M srf (k srf ) models the deviation from a perfect Lambertian reflectance it behaves reciprocally to the surface MTF M srf (k srf ) defined for the deflectometric setup.Hence, similar to Eq. ( 7) we obtain the following:

22In the best case for plenoptic measurements, the surface pattern consists of intensity steps with an modulation of 1 over a wide spatial frequency spectrum:

23This pattern is superimposed by the specular reflection of pattern in the environment.Hence, in contrast to deflectometry, the specular reflection decreases the measurable patterns contrast for the plenoptic setup.A detailed definition of the surface MTF will be discussed in Sect.2.5.

Camera MTF

24Following Fiete and Paul (2014) the camera OTF consists of the lens OTF and the sensor OTF.In the best case of a diffraction-limited optical system, the lens OTF is given by the following: with k = k cam and

25F is the ratio of the focal length f and the diameter D of the entrance pupil and is commonly known in photography as the "f number".Ignoring signal sampling, noise, quantization and anisotropy, the OTF of the sensor is given (with k = k cam ) by the following:

26The bandwidth of the sinc function depends on the aperture of a pixel on the sensor and is assumed to be equal to the pixel pitch c.The camera MTF is the composition of the lens OTF in Eq. ( 10) and the sensor OTF in Eq. ( 11) as follows:

27In Fig. 1 we show the camera MTFs for the deflectometric and the plenoptic camera with lens MTFs as given in the manufacturer data sheet and sensor MTF derived from parameters in Table 1 in comparison with camera MTF for the same sensor and a diffraction-limited lens.

Defocus MTF

28The OTF introduced in the previous section describes a camera in focus; in this section we will discuss a camera out of focus.Let the camera be in focus at some object distance g

29Using the thin lens equation 1 f = 1 g + 1 b the image distance b can be eliminated and we get the size for a point out of focus on the sensor:

30The size of a point on the image plane c cannot be smaller than the camera pixel size c, and thus we define it as follows:

31The OTF for an image out of focus depends on the size of this point (see Beyerer et al., 2012) and replaces the sensor OTF in Eq. ( 11), where J 1 is the Bessel function of first kind and order:

32Figure 2 shows the camera MTF of screen points with 1.0 m distance for several focus distances g from the surface (g = 0.5 m) to the screen (g = 1.0 m).

Motion blur

33In many situations the camera is shaking during exposure due to vibrations caused by heavy machines, etc. Fiete and Paul (2014) give an OTF for motion blur caused by a random movement of the camera during the exposure with standard deviation σ mot :

34Of course, the measured surface may also be subject to vibrations, but due to the complexity of the implications of changing surface normals during exposure it is not covered here.The influence of translational camera motion blur on the MTF according to Eq. ( 17) is shown in Fig. 3.Note that the motion blur is related to the pixel pitch (here 6.45 µm), so motions during exposure smaller than half the pixel pitch in image space have almost no impact on the modulation.

Roughness

35With more surface roughness the reflectance decreases from specular to diffuse; see Fig. 4. Harvey et al. (2012) and Harvey (2013) describe the relation of surface roughness measured as root mean squared (RMS) surface height and the optical properties of the surface using total integrated scatter and the MTF.They observe that the RMS value has to be calculated within the relevant scale.However, this model seems to be valid only for very smooth surfaces, so in the following we propose a simple parametric model for the surface MTF: This matches the MTF measurements of the surfaces shown in Fig. 4, but has no dependency on physical parameters like the surface roughness.For each surface type, the parameter c has to be estimated.The five surfaces shown in Fig. 4 have parameters in the range c = 2.5. ..3.8.As M srf (k cam ) depends on the camera distance s and the screen distance r, it has to be estimated again, if the setup changes.Figure 5 shows the surface MTF for different gloss factors c.

36While deflectometry utilizes the specularity of the surface, passive triangulation approaches like plenoptic-camerabased methods rely on Lambertian reflectance.Hence, for the plenoptic camera we consider the specular component as an additional noise component and therefore model the Lambertian surface MTF M srf as follows:

37Figure 6 shows the Lambertian surface MTF for different gloss factors c.

Ambient light

38In the previous section we described how surface roughness increases the amount of light scattered by the surface.If more ambient light is present in the scene, the light scattered in the direction of the camera also increases.This can be measured as the Michelson contrast, i.e., the ratio of the difference and the sum of the maximum and minimum radiance (L min , L max ).To visualize the influence of (constant, unstructured) ambient light, we assume that the radiance of the pattern, received by the camera, is increased by a constant offset L amb , which leads to a modified surface MTF:

39If the ambient radiance reflected into the camera equals half the radiance of the maximum pattern intensity, the pattern contrast decreases to one-half of the original contrast.Calculating the influence of ambient radiance emitted by the surface requires knowing the location of the ambient light sources and the surface BRDF (bidirectional reflectance distribution function).On specular reflecting surfaces, ambient light does not influence the contrast of a reflected pattern, but more diffuse reflection increases the amount of ambient radiance reflected into the camera.The contrast of a surface texture is influenced by the amount of specularly reflected light.

Deflectometry

40Deflectometry (see Werling et al., 2009), is a relatively inexpensive but powerful method for inspection and measurement of specular surfaces.A generic setup is shown in Fig. 7.The basic idea is to measure the surface normals by identifying the origin x scr of each camera ray (going through x cam and the optical center) that is reflected at the surface.A phase-shifting algorithm is used to identify this origin on the screen x scr .We use M > 3 shifts of a cosine fringe pattern (as seen in Fig. 4) with frequency k scr on the screen to identify the location of x scr with subpixel uncertainty in one direction.The result of this algorithm is the phase φ at the current screen point x scr :

41Hence, the measurement uncertainty of the camera ray origin on the screen σ x scr is given by the following:

42In the following section we will look at the phase-shifting algorithm and the phase noise model.

Phase shifting

43Let the origin x scr of each camera ray be a point on a flat screen showing a sequence of i = 1. ..M cosine patterns captured by the camera with intensity I at the position x cam on the image plane with relative mean exposure β and relative pattern contrast γ cam (k cam ):

44β and γ cam are both constrained to 0. ..1 and β(1

45The maximum exposure is the saturation capacity of the sensor I sat .Each pattern

46In the case of a four-step phase shifting (M = 4) the phase is obtained from the captured intensities as follows:

47To get the absolute position on the screen x scr the phase φ ∈ (0. ..2π ) has to be unwrapped by determining m in Eq. ( 26).

48One popular phase-unwrapping method is the heterodyne method, which uses two different pattern frequencies.See Zuo et al. (2016) for comparison of phase-unwrapping methods.

Phase noise

49A model describing the phase noise of Eq. ( 25) for a symmetric M-step algorithm was derived by Fischer et al. (2012):

50The model is based on the EMVA 1288 camera noise model by the European Machine Vision Association with the parameters of saturation capacity µ e.sat , dark noise variance σ 2 d and overall system gain K. Hence, the authors show a way to estimate the EMVA 1288 camera parameters using a deflectometric setup.Since β and γ depend on local surface reflection properties, the authors propose a way to estimate the measurement uncertainty in Eq. ( 27) based on the observed intensities for each pixel separately:

51Here y i = I i − µ d denotes the physically correct intensities, µ d is the mean dark noise and R 4 the noise term, defined as follows:

52The two parameters influenced by the environment and the surface are β and γ .We can ensure β = 0.5, if the camera exposure is chosen appropriately.The pattern contrast on the sensor γ cam is given as product of the MTF functions for the screen, surface, ambient light, camera and motion blur in Sect. 2. The rest of the parameters can be either chosen (M) or are known from the camera data sheet (EMVA 1288 parameters).Alternatively σ φ can be estimated directly from a measurement using Eq.(28).

Geometric properties

53In the following section the uncertainty of the surface height σ z will be derived.Let the surface be acquired in many small mirror segments.The width of each segment is the lateral uncertainty σ x , and the slant uncertainty is σ α ; see Fig. 7.The uncertainty in surface height is then obtained by the following:

54Measurement uncertainty σ z of a deflectometric system with lateral uncertainty σ x caused by discretization σ c on the camera sensor and uncertainty of the origin of incident rays from the screen σ x scr caused by the phase-shifting algorithm.

55The lateral uncertainty σ x is determined by the angular uncertainty σ θ and the distance s of the camera to the surface (assuming only small angles between viewing and surface normal direction):

56The angular uncertainty of the camera σ θ is determined by the discretization on the sensor σ c = c and the focal length f :

57Either the size of one projected pixel from Eqs. ( 31) and (32) or the defocus on the surface caused by focal plane distances g ∈ [s, r] and the aperture size D ( D σ x = g s−g ) set the lower limit of lateral uncertainty:

58The slant uncertainty of each surface segment σ α is determined by the screen σ x scr from Eq. ( 23) and the screen distance r (assuming only small angles between direction of reflected ray and screen normal):

59Combining the above equations, the uncertainty of the surface height σ z (with tan( σ α 2 ) ≈ tan σ α 2 ) is as follows:

Surface shape

60Assume that the specular surface has a convex spherical shape.Then the screen appears smaller, which results in a smaller fringe period.In the simple case of a plane mirror, the effective fringe pattern frequency depends only on the distance from the camera to the screen:

61If the surface is curved (at least piecewise) like a sphere with radius R, the imaging properties can be described by the imaging properties of a convex (positive radius) or concave (negative radius) mirror with focal length f s = − R 2 :

62This equation has a pole at f s = (f r − rs)/(f − r − s) for concave surfaces, where the screen is located in a caustic.Near this pole, even infinitely small changes of the screen pattern would lead to changes in the image plane, but this configuration is impractical for a real inspection task.

Plenoptic camera

63A plenoptic camera is a single sensor system which records a 4-D light-field representation of a scene in a single image.That means a point in the object space does not only correspond to a single image point in the image, as it would be for a regular camera, but to multiple image points.In other words, a plenoptic camera does not only capture a single ray emitted from a certain point in the object space but multiple light rays with different incident angles.Hence, the four dimensions describe two spatial dimensions and two angular dimensions.Even though plenoptic sensors for industrial applications are still expensive (see Raytrix GmbH, 2016), they rely on a quite simple idea.In general any industrial camera can be transformed into a plenoptic camera by placing a micro lens array (MLA) in front of the image sensor.

64The 4-D light field recorded by a plenoptic camera enables tasks like 3-D measurement or software-based refocusing after an image is captured.Industrial tasks for plenoptic cameras may include 3-D microscopy or the inspection of production parts.

65Here we describe the principle of plenoptic depth measurement based on the concept of a focused plenoptic camera developed by Lumsdaine and Georgiev (2009).As well as this, we formulate an uncertainty prediction model for the plenoptic depth measurement that relies on this concept.

66Figure 8 shows the imaging process of a focused plenoptic camera in the Galilean mode (see Lumsdaine and Georgiev, 2009).The main lens produces a virtual image of the real object at distance b L behind the main lens.Due to the MLA a The image distance b L results from the object distance s and the main lens focal length f as defined by the thin lens equation:

67Based on disparities µ, which can be measured in the micro images, one is able to calculate the image distance b L and from that the respective object distance s of a certain point, under the assumption that all intrinsic camera parameters are known; see Zeller et al. (2016).

Uncertainty prediction model

68In contrast to deflectometry, the plenoptic camera is a passive measurement system that relies on high-contrast patterns on the surface to be measured.Besides, the surface has to have Lambertian reflectance to obtain correct measurements.

69In the following we define a model to predict the measurement accuracy of the plenoptic camera for a certain measurement setup.This measurement setup is shown in Fig. 10.

70In analogy to deflectometry and to obtain a general definition of the surface contrast we define the surface structure as a fringe pattern similar to Eq. ( 24).

71Of course, the pattern on the surface which is captured by the camera will never be a perfect fringe pattern but can always be modeled as a mixture of frequencies.However, this formulation gives us the possibility to model the camera response dependent on the frequency k srf of the surface pattern.In general, the structures to be measured on the surface are intensity steps and thus contain the complete frequency spectrum.

72In a local region one can consider the imaging process just as a scaling of the fringe pattern on the surface in combination with a frequency-dependent attenuation of the intensity modeled by the MTF of the imaging system.Therefore, by applying the assumption of being in a local region around a certain point, perspective distortion does not have to be considered.

Imaging scale

73In contrast to a regular camera, which can be defined mathematically by a pinhole camera model, the imaging scale of a plenoptic camera is not proportional to the distance between main lens and object s.Instead, a plenoptic camera basically performs two perspective projections, one by the main lens from object space to the virtual image and one from the virtual image on the sensor.The scaling between object space and virtual image s L is given by the following:

74Furthermore, one gets the scaling between virtual image and the micro images on the sensor as given by the following:

75Here, b L0 is the distance between MLA and main lens and B is the distance between image sensor and MLA (see Fig. 8).

76Both scaling factors (s L and s ML ) behave reciprocally to each other.While an increasing object distance s results in an increasing scaling factor s L , the scaling factor s ML decreases at the same time since the virtual image distance b L is also decreasing.

77Besides the scaling of the pattern due to perspective projection, the fringe pattern is compressed if the viewing angle of the plenoptic camera α is not 90 • to the surface (see Fig. 10).This results in an additional scaling of the pattern s α defined as follows:

78with 0 < α < π.

79Based on the defined scaling factors one can define the following relations between surface x srf , virtual image x vim and sensor coordinates x cam :

80Hence, we obtain the following frequencies of the fringe pattern in the virtual image k vim and on the sensor k cam , respectively:

81Following the Shannon-Nyquist sampling theorem we can calculate from Eq. ( 45) an upper boundary for the fringe pattern frequency on the surface.Thus, to avoid aliasing, the following condition has to hold:

82Here, c is the pixel pitch of the sensor.After inserting Eq. ( 45) into Eq.( 47) and rearranging it, one receives the following condition for the frequency of the fringe pattern on the surface to assure aliasing-free sampling:

Attenuation

83Similarly to in deflectometry, we can describe the imaging properties of the plenoptic camera by its MTF.In a plenoptic camera, we have a sequence of two optical systems: the main lens and the MLA.This results in an MTF of the complete plenoptic camera that depends on the distance to the surface.This can be formulated as the sequence of two MTFs with a nonlinear connection between k vim and k cam :

84For simplification, we approximate the complete MTF M cam (k cam ) as follows:

85By this approximation we neglect the depth scaling from the virtual image on the sensor and therefore consider M L and M ML to be defined on a common frequency axis.However, the error made by the approximation is negligible for object distances that are large with respect to the focal length f L and short depth ranges, which have to be measured.An alternative would be to define and measure a depth-dependent MTF.

86For a Raytrix camera the MLA consists of three different types of micro lenses to increase the depth of field of the camera.Therefore, strictly speaking one has to define three different MTFs for the respective micro lens types.

87For the simulations in Sect. 5 we assume a plenoptic camera MTF M cam (k cam ) as defined in Eq. ( 12).However, it might be worth investigating differences in the camera MTF of a plenoptic camera in comparison to a regular monocular camera.

Measurement uncertainty

88Depth measurements are obtained based on disparities µ, which are estimated from the recorded micro images.The accuracy of the estimated disparity mainly relies on the intensity gradient along the epipolar line as well as the additive signal noise of the image sensor.The signal noise already combines noise sources like dark noise and quantization noise.

89For a given fringe pattern I srf (x srf ), as defined in Eq. ( 24), on the surface to be measured one obtains a maximum absolute intensity gradient on the image sensor as follows:

90The MLA in a plenoptic camera is in most cases arranged on a hexagonal grid.Therefore, for each micro lens multiple epipolar lines in all possible directions are obtained.Figure 11 exemplarily shows the epipolar lines in a hexagonally arranged MLA.Thus, in the following we equate the maximum absolute gradient g cam with the maximum absolute gradient along one specific epipolar line.Zeller et al. (2016) show that one can approximate the variance of the estimated disparity σ 2 µ based on the variance of the signal noise σ 2 I and the maximum gradient along the epipolar line g cam as follows:

91As defined in the EMVA1288 standard, the signal noise σ I results from the system gain K, the dark noise σ d , the quantization noise σ q , the gray value µ y and the dark signal µ y.dark as follows:

92However, for later simulations we use an average value derived from the camera specification as given in Table 1.

93Eq. ( 52) states that for a high-intensity gradient along the epipolar line the disparity can be determined more accurately than for a low-intensity gradient.

94For multifocus plenoptic cameras (see Perwaß and Wietzke, 2012), like those from the manufacturer Raytrix, the MLA consists of different types of micro lenses with different focal lengths.Therefore, for a certain object distance one type of micro lenses will produce focused micro images while the micro images of another type will be out of focus.This effect of differently focused micro images also has to be considered when estimating the disparity µ.How this focus disparity error can be modeled is shown by Zeller et al. (2017).

95For simplification, we do not consider the focus disparity error here.Besides, by choosing an appropriate camera setup one can assure that a pair of focused micro images is always present for a given object point.

96Based on the theory of propagation of uncertainties, one is able to calculate the standard deviation of the measured object distance σ s from the disparity standard deviation σ µ .The relationship between σ µ and σ s is given by the following:

97Equation ( 54) was derived by Zeller et al. (2017).Here D M defines the diameter of a micro lens, while κ is a normalized distance factor between the two micro lenses used for disparity estimation, i.e., κ is one for two directly adjacent micro lenses.In a hexagonal arrangement of the MLA the smallest 10 values of κ are 1.00, 1.73, 2.00, 2.65, 3.00, 3.46, 3.61, 4.00, 4.36 and 4.58. Perwaß and Wietzke (2012) showed that, depending on the distance between virtual image and MLA plane v, it can be guaranteed that micro lenses further apart still see the same object point and therefore a larger value of κ can be chosen.

Simulation

98In the following section, we present simulation results for the measurement uncertainty of both the deflectometric and the plenoptic sensor.They are derived for an exemplary setup shown in Table 1.We chose similar settings for both systems to make realistic comparisons.All simulation results that depend on the spatial frequency of some pattern are shown as a function of the spatial frequency on the image plane k cam .The frequency limits have been chosen according to the Shannon-Nyquist sampling theorem: the highest detectable frequency is limited by the pixel pitch, i.e., k cam < 1 2 c .The surface MTF parameters for the low and high gloss and mirror were estimated from real measurements, the value for the ideally specular surface should be c → ∞, but for numerical reasons we chose c = 8.For plots containing results of both sensors, we plotted results in blue for the deflectometric sensor and results in red for the plenoptic sensor.

Simulation results -deflectometry

99We assume that the overall shape of the reflecting surface is flat.Thus we can apply Eq. ( 36) to estimate the spatial frequency on the sensor k cam from the frequency on the screen k scr .

100The first result, depicted in Fig. 12, shows the uncertainty of the phase noise model using Eq. ( 27) for different surface gloss parameters.It can be seen that the uncertainty increases rapidly with the pattern frequency when the surface is not perfectly specularly reflecting.

101In contrast, higher spatial frequencies (and thereby shorter period lengths) in Eq. ( 23) decrease the uncertainty in estimating the screen position x scr .These two opposite effects lead to a unique pattern frequency, where the resulting measurement uncertainty on the screen reaches a minimum for some frequency k scr opt and a given roughness.As the uncertainty of the surface slant σ α given in Eq. ( 34) directly depends on the uncertainty of the screen position, we can also see these minima in Fig. 13.Here the measurement uncertainty of the surface normal dependent on the pattern frequency k cam is shown for different focus distances g as well as different surface gloss factors c.For focus distances g < 1 m the image of the screen is defocused and the Bessel function from Eq. ( 16) starts to appear.Please note that the curves in Fig. 13 with g ≤ 0.8 m are subject to aliasing artifacts.

102It can be seen that k scr opt changes with the surface properties.With higher surface gloss c and the focus on the screen (g → 1 m), higher frequencies can still be resolved on the sensor, and hence k scr opt increases and leads to lower measurement uncertainties.Of course, the camera sensor still limits the highest resolvable frequency on the sensor:

103In Fig 14 we show the measurement uncertainty from Eq. ( 35) in z direction next to the results of the plenoptic sensor.Note the triangle model shown in Fig. 7 that connects the uncertainties of surface height σ z , position on the surface σ x and angle of the reflected ray σ α .Since both uncertainties σ x and σ α are very small, the final measurement uncertainty σ z is very small as well (for plane surface mirrors in the nanometer range).Also note that the surface height is not measured directly, so σ z is only valid for local changes.The whole surface can be reconstructed by integration over the surface gradients, but along with the integration, the uncertainties sum up to larger errors for a global surface shape.

Simulation results -plenoptic camera

104Similar to Sect.5.1 we performed different simulations based on the measurement uncertainty model defined in Sect.4.1.We chose a plenoptic sensor similar to the Raytrix R5 camera (see Table 1).

105In Table 1 the measurement range s defines the range around the surface distance s for which measurements can be obtained.To obtain depth measurements from a plenoptic camera it has to be assured that a point is visible in at least two micro images.This is the case for virtual depth v ≥ v min = 2.0 (v := b L0 −b L B ; see Fig. 9) and thus for b L ≥ b Lmin = b L0 + 2.0B for a hexagonally arranged MLA (see Perwaß and Wietzke, 2012).Hence, b L0 is chosen such that s + s results in an image distance b L ≥ b Lmin .Therefore, for all distances larger than s + s no depth measurements can be obtained.By minimizing the measurement range s one is able to improve the measurement accuracy.

Focal length

106Figure 15 shows simulation results for a perfect Lambertian surface.Here we varied the focal length f while all other parameters are as given in Table 1.As can be seen from the figure, the depth uncertainty of the camera can be significantly improved by increasing the focal length.However, there exists an optimum focal length around f = 50 mm for which the best measurement uncertainty is obtained.The reason for that is the reciprocal behavior between image distance b L and object distance s, which is dependent on the focal length f .Hence, as long as the distance s is much larger than the focal length f the depth uncertainty can be improved by increas- ing the focal length.However, at approximately s ≈ 10•f the best accuracy is obtained, as can be seen from the figure.

107For the following simulations, which model the effect of motion blur as well as different surface roughnesses, the focal length was set to f = 16 mm.

Simulation results -motion blur

108Figure 16 shows the effect of different amounts of camera vibration for both systems.The resulting motion blur behaves as a low-pass filter which is modeled as given in Sect.2.4.Due to the implicit low-pass filtering the optimal pattern is shifted to a lower frequency.Thus, the introduced blur significantly degrades the measurement results.

Simulation results -surface roughness

109While increasing surface roughness has a negative effect on the deflectometric measurement results, due to less specular reflectance, it has the opposite effect on the plenoptic measurements.For the plenoptic setup best results are expected at a completely Lambertian reflectance (surface gloss c → 0).Noise is introduced by the specular reflection component.Figure 14 shows the expected measurement results for surfaces with different specularity.

110Finally, in Fig. 17 we show the measurement uncertainty as a function of the surface gloss c and the focus distance g, assuming (for deflectometry) that the optimal pattern k scr = k scr opt is chosen for each case.

111For high-gloss surfaces the deflectometric sensor is most accurate with the camera focused on the screen.For lowgloss surfaces it is preferable to focus on the surface and use patterns with low spatial frequencies.

Experiments

112In this paper we present quite complex and complete mathematical models for the measurement process of a deflectometric and a plenoptic sensor system, although for such complex models it is almost impossible to validate them entirely.Hence, we validate our models on the basis of only two distinct setups: one for deflectometry and one for plenoptic.

113For both measurement systems we use the same configurations as given in Table 1.However, one cannot guarantee that all parameters match exactly, due to manufacturing tolerances as well as manual adjustments.

114For both sensor systems we obtain measurements based on the case of a thermometer that consists of surfaces with different reflectance properties.This case is shown in Fig. 18.

115Since for the plenoptic camera we cannot influence the contrast of the surface pattern on the case, we performed a second experiment, in which we generated a fringe pattern on a screen and recorded this pattern with the plenoptic camera.Here, we measured the measurement uncertainty for different fringe frequencies.This setup is shown in Fig. 24.

Experimental results -deflectometry

116We used the deflectometric sensor shown in Fig. 19 to validate the measurement uncertainty of the surface slant σ α .

117The measurements of the thermometer surface were taken using 24 different pattern frequencies in the range k cam = 0.127-32.7 mm −1 with a logarithmic step size and under dark and bright illumination conditions.For dark illumination conditions there is no ambient light, apart from stray light emitted by the screen.For bright conditions there is additional light from fluorescent ceiling lamps.Fringe modulation γ cam was obtained using the captured images under both illumination conditions.Figure 20 shows the fringe modulation for one low and one high pattern frequency.

118The red boxes mark areas on the surface with different reflection properties: case and display.Measurements are taken per pixel and then averaged over these two areas.On the one hand, we calculated a spline interpolation γ cam (k cam ) from the fringe modulation measurements, as shown in Fig. 21.Using this continuous function of γ cam (k cam ) and the sen- sor model we are able to predict a continuous function for σ α (k cam ).

119On the other hand, we estimated σφ for each pattern frequency from the standard deviation over nine phase measurements.Two phase measurements are shown in Fig. 22.

120Hence, using Eq. ( 34), we calculated the standard deviation of the surface slant σα and compared it to the predicted measurement uncertainty as shown in Fig. 23.

121The predicted uncertainties for σ α slightly underestimate the measurement standard deviation, especially for the surface case.This may be caused by inaccurate measurements or interpolation of γ cam .At k cam ≈ 1e−3 mm −1 the measurement noise is dropping, because the standard deviation of the phase σφ is limited to 2π , while the frequency in Eq. ( 23) is increasing.Apart from this, the model approximates the uncertainty of the display surface slant very well.

Experimental results -plenoptic camera

122Using the setup which is shown in Fig. 24 we recorded sets of images at different fringe frequencies.We recorded images at 10 different frequencies starting at a screen frequency k scr = e−3pixel −1 up to k scr = e−1pixel −1 with a logarithmic step size.For each frequency we recorded 20 images, which we used to calculate the measurement statistics empirically.To obtain the frequencies k cam of the fringe pattern in the camera image we calculated the discrete Fourier transform (DFT) of a single image and detected the peak of the first harmonic.This way a scaling factor from k scr to k cam is obtained.

123Figure 25 shows the mean empirical standard deviation σs of the measured distance s for a pixel in the depth map.Different than expected, we obtain a very low standard deviation for the smaller frequency.Furthermore, for the highest frequency the standard deviation seems to increase slightly.However, both effects are plausible.For low frequencies, the gradient in the image is just not high enough to obtain reliable depth estimates, and hence no measurements at all or only a few measurements are obtained.Thus, too few measurements do not allow us to calculate reliable statistics.Due to the periodic pattern, for high frequencies one obtains ambiguous stereo matches in neighboring micro images.Hence, the depth estimation has a higher number of outliers.However, the standard deviation σs behaves similarly to that predicted by the presented model, as shown in Fig. 15.Due to the fact that we have now accurate MTF for the screen used in this experiment and the ambient light can only be influenced to some degree, we cannot validate the model on a more quantitative basis.

124Figure 26 shows the reconstructed intensity image of the case recorded by the plenoptic camera.Here, one can still slightly see the borders of the micro images, which are a little bit darker than the center.

125In contrast to the deflectometric setup, we are not able to validate our model based on the recordings of this case, since we are not able to influence the pattern on the surface of the case.However, we still measured the empirical standard deviation for two different positions on the case.Here, the mean standard deviation is calculated based on a set of 40 images for all valid points seen in Fig. 26b.We used all valid points on the display and only those valid points on the case around the "Min/Max" inscription.

126For the display we measured a mean standard deviation of 8.8 mm and for the inscription a mean standard deviation of 12.8 mm.Intuitively one would expect to obtain a higher uncertainty for the display than for the inscription on the case.However, the depth estimation is already filtering out uncertain estimates, which leads to a sparser depth map on the display.This sparsity must also be taken into account when rating the results.However, as can be seen from deflectometry, both the case and its display are not perfect Lambertian surfaces.Hence, the obtained accuracy conforms quite well to the simulations shown in Fig. 17.

Conclusions

127In this paper we proposed two models to predict the measurement uncertainty of a deflectometric and a plenoptic sensor.Based on our introduced models, we have shown that, for a given measurement setup, there exists an optimum fringe pattern that results in the lowest measurement uncertainty.In case of the deflectometric sensor, the achieved height measurement uncertainty ranges between 1 and 100 nm if the surface is at least partially specular.In contrast the measurement uncertainty of the plenoptic sensor on a perfect diffusely reflecting and textured surface can be as low as several micrometers, depending on the measurement setup.

128While the deflectometric sensor has much lower uncertainty for surface changes (3 orders of magnitude for partially specular surfaces), it measures surface normals instead of distances, which have to be integrated to obtain the surface height.The plenoptic measurement could help to regularize this integration by providing a relatively rough but robust distance measure.

129While the simulation shows plausible results for the proposed models, we furthermore were able to validate the models exemplarily by real measurements.

130Data availability.The raw image data can be made available upon request.

131Author contributions.MZ and his supervisor MH developed the theory and evaluation for deflectometry, and NZ and his supervisor FQ did the same for the plenoptic sensor.

132Competing interests.The authors declare that they have no conflict of interest.Special issue statement.This article is part of the special issue "Evaluating measurement data and uncertainty".It is not associated with a conference.

Figure 2 .

133Figure 2. Deflectometric camera MTF for defocused image of screen points with 1.0 m distance and focal plane distances g.

Figure 3 .

134Figure 3. Motion blur MTF caused by camera motion in image space.

Figure 4 .Figure 5 .

135Figure 4. Image of a reflected pattern for five different surfaces ranging from high to low gloss for a pattern on the screen with spatial frequency k cam = 1 mm −1 .Note the modulation change from left (high gloss, c = 3.8) to right (low gloss, c = 2.5), where the pattern is almost invisible.

Figure 6 .

136Figure 6.Lambertian surface MTF for different surface gloss parameters.

Figure 8 .

137Figure 8. Image projection of a focused plenoptic camera in the Galilean mode.One object point is projected to multiple micro images on the sensor.

Figure 9 .Figure 10 .

138Figure9.Raw image recorded by a focused plenoptic camera.Different to a regular camera, a plenoptic camera has a micro lens array (MLA) placed in front of the sensor (see Fig.8).Therefore, the raw image recorded by the camera is not one consistent central perspective image, but consists of thousands of circular micro images where each micro images shows only a small portion of the complete scene, as can be seen in the figure.From the magnified section, one can see that the same object point is projected to multiple neighboring micro images.

Figure 11 .

139Figure11.Epipolar lines in a hexagonally arranged MLA.Due to the reason that the micro images are rectified to each other by nature, the epipolar line for a pair of micro images is defined by the vector between the respective principal points.The figure exemplarily shows one epipolar line (blue) for the five shortest stereo baseline distances (red).

Figure 12 .

140Figure 12.Deflectometric measurement uncertainty of the phase on the screen, showing a pattern with fringe frequency translating to k cam when reflected onto the sensor.

Figure 13 .

141Figure 13.Deflectometric measurement uncertainty of the surface normal for several focus distances and surface MTF parameters.

Figure 14 .

142Figure 14.Measurement uncertainty of plenoptic and deflectometric sensor for several surface MTF parameters.The pattern is shown on the surface and also shown on the screen.Both pattern frequencies are given relative to the camera sensor image frequencies k cam .

Figure 15 .

143Figure 15.Measurement uncertainty of the plenoptic sensor for different main lens focal lengths f and a perfect diffusely reflecting surface.

Figure 16 .Figure 17 .

144Figure 16.Measurement uncertainty of plenoptic and deflectometric sensor with motion blur σ mot .The pattern is shown on the surface and also on the screen.Both pattern frequencies are given relative to the camera sensor k cam .

Figure 18 .

145Figure 18.Case of a thermometer used to validate the proposed sensor models.The case consists of different surfaces with different reflectance properties.

Figure 19 .

146Figure 19.Setup used to measure the measurement uncertainty of the deflectometric sensor for different frequencies of the fringe pattern on the surface.

Figure 20 .

147Figure 20.Measurements of γ cam for different pattern frequencies under dark conditions.

Figure 21 .

148Figure 21.Measurements of the surface MTF (points) and extrapolated data (lines) for two areas on the surface (display and case) and two illumination conditions (dark and bright surrounding).

Figure 22 .

149Figure 22.Measurements of φ for different pattern frequencies under dark conditions.Measurement noise increases with the pattern frequency, depending on the surface reflectance.

Figure 23 .

150Figure 23.Comparison of predicted measurement uncertainty (lines) and standard deviation (points) of σ α using the deflectometric measurement model.

Figure 24 .

151Figure 24.Setup used to measure the measurement uncertainty of the plenoptic camera for different frequencies of the fringe pattern on the surface.

Figure 25 .

152Figure 25.Measurement uncertainty of the plenoptic sensor for different main lens focal lengths f and a perfect diffusely reflecting surface.

Figure 26 .

153Figure 26.Case recorded by the plenoptic camera.Intensity (a) image and depth map (b) calculated from the recordings of the plenoptic camera.

Table 1 .

154Simulation parameters, with corresponding symbols (S) for deflectometry (D), plenoptic (P) and units (U).

참고문헌 18건

  1. Measurements of the Modulation Transfer Function of Image Displays Journal of Imaging Science and Technology · Society for Imaging Science and Technology · 2004 10.2352/j.imagingsci.technol.2004.48.1.art00012
  2. On the Calibration of Focused Plenoptic Cameras Lecture notes in computer science · Springer Science+Business Media · 2013 10.1007/978-3-642-44964-2_15
  3. Optical three-dimensional metrology with structured illumination Optical Engineering · SPIE · 2011 10.1117/1.3578448
  4. Total integrated scatter from surfaces with arbitrary roughness, correlation widths, and incident angles Optical Engineering · SPIE · 2012 10.1117/1.oe.51.1.013402
  5. Parametric analysis of the effect of scattered light upon the modulation transfer function Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2013 10.1117/12.2026958
  6. Modeling the optical transfer function in the imaging chain Optical Engineering · SPIE · 2014 10.1117/1.oe.53.8.083103
  7. Parametric analysis of the effect of scattered light upon the modulation transfer function Optical Engineering · SPIE · 2013 10.1117/1.oe.52.7.073110
  8. The focused plenoptic camera 2009 10.1109/iccphot.2009.5559008
  9. INSPECTION OF SPECULAR AND PARTIALLY SPECULAR SURFACES 2009
  10. On the accuracy potential of focused plenoptic camera range determination in long distance operation ISPRS Journal of Photogrammetry and Remote Sensing · Elsevier BV · 2016 10.1016/j.isprsjprs.2016.01.012
  11. Stepwise calibration of focused plenoptic cameras Computer Vision and Image Understanding · Elsevier BV · 2016 10.1016/j.cviu.2015.12.010
  12. Automated Robust Metric Calibration Algorithm for Multifocus Plenoptic Cameras IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2016 10.1109/tim.2015.2507412
  13. Vorhersage des Phasenrauschens in optischen Messsystemen mit strukturierter Beleuchtung tm - Technisches Messen · R. Oldenbourg Verlag · 2012 10.1524/teme.2012.0256
  14. Temporal phase unwrapping algorithms for fringe projection profilometry: A comparative review Optics and Lasers in Engineering · Elsevier BV · 2016 10.1016/j.optlaseng.2016.04.022
  15. Depth estimation and camera calibration of a focused plenoptic camera for visual odometry ISPRS Journal of Photogrammetry and Remote Sensing · Elsevier BV · 2016 10.1016/j.isprsjprs.2016.04.010
  16. Automatische Sichtprüfung Springer eBooks · Springer Nature · 2016 10.1007/978-3-662-47786-1
  17. From the Calibration of a Light-Field Camera to Direct Plenoptic Odometry IEEE Journal of Selected Topics in Signal Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/jstsp.2017.2737965
  18. Automatische Sichtprüfung Springer eBooks · Springer Nature · 2012 10.1007/978-3-642-23966-3