第九章 明暗分析
-
Upload
talon-delaney -
Category
Documents
-
view
36 -
download
2
description
Transcript of 第九章 明暗分析
![Page 1: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/1.jpg)
第九章 明暗分析第九章 明暗分析Shape from Shading
SFS SFM SFC SFT …… SFX
![Page 2: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/2.jpg)
SHADING means intensity variation.
It is thought to be one of the shape cues which is used by the human visual system to recover 3D information (shape).
Observing a monochrome photograph of a face, we get a clear expression of the shape features of a person just from the intensity variations of the image.
Artist also use shading in their drawings to create a 3D figure.
1. Introduction
![Page 3: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/3.jpg)
![Page 4: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/4.jpg)
![Page 5: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/5.jpg)
![Page 6: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/6.jpg)
![Page 7: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/7.jpg)
![Page 8: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/8.jpg)
![Page 9: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/9.jpg)
![Page 10: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/10.jpg)
![Page 11: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/11.jpg)
![Page 12: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/12.jpg)
![Page 13: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/13.jpg)
![Page 14: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/14.jpg)
![Page 15: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/15.jpg)
Shape from shading (SFS) problem can be considered as :Recovering 3D shape information from the shading analysis of a 2D intensity image.
![Page 16: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/16.jpg)
光在物体表面的反射物理特性 There are no vision algorithms, but definitions and ideas that will be useful later on.
本章主要讨论两个问题
利用反射特性恢复表面形状 To reconstruct a patch of surface from a series of pictures of the surface, taken under different illuminants.
![Page 17: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/17.jpg)
2 图象辐照度 强度、亮度、灰度、图象辐照度( irradiance )图象平面中一点的图象辐照度是指图象平面点单位面积接收的辐射( radiance )功率。辐射为输出能量,辐照为输入能量.对图像来说,图像的辐照源对应景物对光源的反射,即场景的辐射。图象平面上一点的辐照度对应于图象点到场景点方向的场景辐射能量:
),,(),( zyxLyxE
![Page 18: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/18.jpg)
3 双向反射分布函数 决定场景表面片辐射的因素: 投在场景表面片上的照明 表面片反射的入射照明
![Page 19: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/19.jpg)
从表面片往某一方向辐射的能量与表面片从某一方向接收的能量的比值定义为双向反射分布函数( Bidirectional Reflectance Distribution Function , BRDF ) :
),(),,,(),( iieeiiee EfL
![Page 20: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/20.jpg)
4 Light Source• Anything that emits light is a light source. 点光源、线光源、面光源、均匀光源… .
• A point source at infinity is a good model for the sun, for example, because the solid angle that the sun subtends is small and essentially constant, wherever it appears in the field of view.• A line source has the geometry of a line• Area sources are important, they occur quite commonly in natural scenes — an overcast sky is a good example.
![Page 21: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/21.jpg)
4 Light Source(Cont.)• 给定表面材料的 BRDF 和光源的分布,就可以计算一个表面片发出的光量
sin i i i
• 空间立体角:
2sin2
sin
2/
0
2
0
2/
0
2
0
d
dddS
![Page 22: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/22.jpg)
5 Lambertian 反射 ( 散光反射 )在一个固定的照明分布下从所有的视场方向上观测都具有相同亮度的表面 :
• 表面不吸收任何入射光.•不管照明分布如何, Lambertian 表面在所有的表面方向上接收并发散所有的入射照明,结果是每一个方向上都能看到相同数量的能量.•许多无光泽表面都大致属于 Lambertian 型.
![Page 23: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/23.jpg)
感觉亮度方程 :
Lambert 余弦定律 : 由点光源照明的表面片的感觉亮度随着单元表面法线的入射角度变化而变化.
5 Lambertian 反射 (Cont.)
• 透视缩比效应 (foreshortening )
s
iiiii
sisi
iiiiiieeiiee
I
ddI
ddIfL
cos
cossinsin
)()(1
cossin),(),,,(),(
0
00
2/
0
2
0
2/
0
f i i e e( , , , )
1• Lambertian 表面的 BRDF 是一个常数 • 一个远距离点光源的照明
![Page 24: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/24.jpg)
6 镜面反射 镜面在某一方向上反射所有的入射光 , 反射方向角相对于镜面法线来说与入射角相等 , 从方向 ii来的光线的反射方向 eeii .镜面的 BRDF 为 :
ii
ieieeeiif
cossin
)()(),,,(
![Page 25: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/25.jpg)
常量控制着两个反射函数的混合度
7 Lambertian 反射和镜面反射组合在计算机图形学中,通常用镜面反射和散光反射一起来构成物体反射特性模型:f i i e e
e i e i
i i
( , , , ) ( ) ( ) ( )sin cos
1
![Page 26: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/26.jpg)
8 表面方向
表面梯度矢量 ( , )p q
表面片的法线与梯度的关系 )1,,( qpn
221
)1,,(ˆqp
qp
nnn单位法线:
![Page 27: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/27.jpg)
9 反射图 将场景照明、表面反射和(在以观察者为中心的坐标系中)表面方向表示的组合称为反射图 。
![Page 28: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/28.jpg)
10 从图象明暗恢复形状 在一个象素点处的图象强度是对应于场景点的表面方向的函数,该强度值可在反射图中获取.这样,对于一个固定照明和成象条件,以及对于一个已知反射特性的表面,表面方向的变化可转换成图象强度的相应变化.反过来,由图象强度的变化可以恢复表面形状的问题,即所谓从明暗恢复形状的问题 .
![Page 29: 第九章 明暗分析](https://reader034.fdocuments.in/reader034/viewer/2022042719/56813207550346895d985cf1/html5/thumbnails/29.jpg)
11 光度立体