Архитектура Аудит Военная наука Иностранные языки Медицина Металлургия Метрология Образование Политология Производство Психология Стандартизация Технологии |
Shape from Shading for Lambertian Surfaces
We fi rst apply this technique for diff use refl ecting opaque objects. For the sake of simplicity, we assume that the surface of a Lambertian object is illuminated by parallel light. The radiance L of a Lambertian surface (Section 6.4.3) does not depend on the viewing angle and is given by:
π
= Σ s, s Σ . (8.11) 8.5 Shape from Shading† 219
tanq i
Figure 8.8: Radiance computation illustrated in the gradient space for a Lam- bertian surface illuminated by a distant light source with an incidence angle θ i and an azimuthal angle φ i of zero.
This gradient is directly related to the surface normal n by
n = − ∂ a, − ∂ a, 1 = Σ − s1, − s2, 1 Σ . (8.12)
L ρ (λ ) n T l ρ (λ ) − s1 tan θ i + 1
E . (8.13)
With a single illumination source, the information about the surface normal is incomplete even if the surface refl ectivity is known. Only the component of the surface normal in the direction of the illumination 220 8 3-D Imaging
A b 1 1
s2 s2
0.5 0.5
0 0
-0.5
-0.5
-1 -1 -0.5 0 0.5 s1 1 -1 -1 -0.5 0 0.5 s1 1
change is given. Thus surface reconstruction with a single illumination source constitutes a complex mathematical problem that will not be con- sidered further here. In the next section we consider how many illumi- nations from diff erent directions are required to solve the shape from shading problem in a unique way. This technique is known as photomet- ric stereo.
Photogrammetric Stereo The curved contour lines in Fig. 8.9 indicate that the relation between surface slope and radiance is nonlinear. This means that even if we take two diff erent illuminations of the same surface (Fig. 8.10), the surface slope may not be determined in a unique way. This is the case when the curved contour lines intersect each other at more than one point. Only a third exposure with yet another illumination direction would make the solution unique. Using three exposures also has the signifi cant advantage that the re- fl ectivity of the surface can be eliminated by the use of ratio imaging. As an example, we illuminate a Lambertian surface with the same light source from three diff erent directions l 1 = (0, 0, 1) l 2 = (tan θ i, 0, 1) l 3 = (0, tan θ i, 1). (8.14) 8.5 Shape from Shading† 221 1 s2 0.5 0 -0.5
-1 -1 -0.5 0 0.5 s1 1 Figure 8.10: Superimposed contour plots of the radiance of a Lambertian surface with homogeneous refl ectivity illuminated by a light source with an angle of incidence of 45° and an azimuthal angle of 0° and 90°, respectively. Then L2/L1 = − s1 tan θ i + 1 1 + tan2 θ i , L3/L1 = − s2 tan θ i + 1 1 + tan2 θ i . (8.15) Now the equations are linear in s1 and s2 and — even better — they are decoupled: s1 and s2 depend only on L2/L1 and L3/L1, respectively (Fig. 8.11). In addition, the normalized radiance in Eq. (8.15) does not depend on the refl ectivity of the surface. The refl ectivity of the surface is contained in Eq. (8.10) as a factor and thus cancels out when the ratio of two radiance distributions of the same surface is computed.
8.5.3 Shape from Refraction for Specular Surfaces‡ For specular surfaces, the shape from shading techniques discussed in Sec- tion 8.5.1 do not work at all as light is only refl ected towards the camera when the angle of incidence from the light source is equal to the angle of refl ectance. Thus, extended light sources are required. Then, it turns out that for transpar- ent specular surfaces, shape from refraction techniques are more advantageous than shape from refl ection techniques because the radiance is higher, steeper surface slopes can be measured, and the nonlinearities of the slope/radiance relationship are lower. A shape from refraction technique requires a special illumination technique, as no signifi cant radiance variations occur, except for the small fraction of light refl ected at the surface. The base of the shape from refraction technique is the telecentric illumination system which converts a spatial radiance distribution into an angular radiance distribution. Then, all we have to do is to compute the relation between the surface slope and the angle of the refracted beam and to use a light source with an appropriate spatial radiance distribution. 222 8 3-D Imaging
a 1
s2
0.5
0
-0.5 b
s2
0.5
0
-0.5
-1 -1 -0.5 0 0.5 s1 1 -1 -1 -0.5 0 0.5 s1 1
Figure 8.11: Contour plots of the radiance of a Lambertian surface illuminated by parallel light with an incidence angle of 45° and an azimuthal angle of 0° ( a ) and 90° ( b ), respectively, and normalized by the radiance of the illumination at 0° incidence according to Eq. (8.15). The step size of the contour lines is 0.1. Note the perfect linear relation between the normalized radiance and the x and y surface slope components.
Figure 8.12 illustrates the optical geometry for the simple case when the camera is placed far above and a light source below a transparent surface of a medium with a higher index of refraction. The relation between the surface slope s and the angle γ is given by Jä hne et al. [84] as s = tan α = n tan γ ≈ 4 tan γ 1 + 3 tan2 γ (8.16) n − 1 + tan2 γ with n = n2/n1. The inverse relation is tan γ = s , n2 + (n2 − 1)s2 − 1 2
≈ 1 s.1 + 3 s2Σ . (8.17) , n2 + (n2 − 1)s2 + s2 4 32
tan γ = n2 − 1. (8.18) The refraction law thus causes light rays to be inclined in a certain direction relative to the slope of the water surface. If we make the radiance of the light source dependent on the direction of the light beams, the water surface slope becomes visible. The details of the construction of such a system are described by Jä hne et al. [84]. Here we just assume that the radiance of the light rays is proportional to tan γ in the x1 direction. Then we obtain the relation L ∝ s1
n2 + (n2 − 1)s2 − 1
8.5 Shape from Shading† 223 A b
Figure 8.12: Refraction at an inclined surface as the basis for the shape from refraction technique. The camera is far above the surface. a Rays emitted by the light source at an angle γ are refracted in the direction of the camera. b Even for a slope of infi nity (vertical surface, α = 90 °), rays from the light source meet the camera.
1
s2
0.5
0
-0.5
-1 -1 -0.5 0 0.5 s1 1
Figure 8.13: Radiance map for the shape from refraction technique where the radiance in a telecentric illumination source varies linearly in the x1 direction.
Of course, again we have the problem that from a scalar quantity such as the radiance no vector component such as the slope can be inferred. The shape from refraction technique, however, comes very close to an ideal setup. If the radiance varies only linearly in the x1 direction, as assumed, the radiance map in the gradient space is also almost linear (Fig. 8.13). A slight infl uence of the cross slope (resulting from the nonlinear terms in Eq. (8.19) in s2) becomes apparent only at quite high slopes. Ratio imaging can also be used with the shape from refraction technique. Color images have three independent primary colors: red, green, and blue. With a 224 8 3-D Imaging
total of three channels, we can identify the position in a telecentric illumination system — and thus the inclination of the water surface — uniquely and still have one degree of freedom left for corrections. With color imaging we also have the advantage that all three illuminations are taken simultaneously. Thus moving objects can also be observed. A unique position coding with color can be achieved, for example, with the following color wedges:
G( s ) = (1/2 + cs1)E0( s ) R( s ) = [1/2 − c/2(s1 + s2)]E0( s ) B( s ) = [1/2 − c/2(s1 − s2)]E0( s ). (8.20) We have again assumed a linear relation between one component of the slope and the radiance, with nonlinear isotropic corrections of the form s1E0( s ); c is a calibration factor relating the measured radiance to the surface slope. We now have three illuminations to determine two slope components. Thus, we can take one to compensate for unwanted spatial variation of E0. This can be done by normalizing the three color channels by the sum of all channels G + R + B: G = 2 . 1 + cs1Σ , G + R + B 3 2
(8.21) B − R G + R + B 2 = 3 cs2. Then the position on the wedge from which the light originates is given as s1 = 1 2G − R − B , s2 = 3 B − R . (8.22) 2c G + R + B 2c G + R + B From these position values, the x and y components of the slope can be com- puted according to Eq. (8.19).
|
Последнее изменение этой страницы: 2019-05-04; Просмотров: 216; Нарушение авторского права страницы