OMSCS-CV课程笔记17-3D Perception
这个系列是Gatech OMSCS 计算机视觉课程(CS 6476: Computer Vision)的同步课程笔记。课程内容涉及图像处理以及传统计算机视觉的相关理论和方法,本节主要介绍三维感知的相关内容。
Motivation
在本门课程中我们介绍了对二维图像进行处理的各种算法,然而单张图像可能无法很好地表示三维空间中的物体。实际上图像有着很多的缺陷,比如说同样的物体在不同的光照条件下会有不同的颜色(color inconsistency)、无法通过图像恢复物体的绝对尺度、当物体本身缺乏纹理或是与背景比较相似时难以对其进行区分等等。




因此我们希望能够更好地表达三维世界中的物体,这样的过程称为三维感知(3D sensing)。

3D Sensing
根据成像的原理3D sensing可以分为被动和主动两种。
Passive 3D sensing
被动感知一般是指利用自然环境中的光源和一些几何或是场景中的信息来实现三维物体的感知。被动感知的基本方法是使用双目相机来重建物体的深度,而在电影工业中有时还会使用更多的相机来提高重建的精度。

除此之外还有一些研究表明我们可以利用焦距信息来重建物体的深度。

Active 3D sensing
主动感知则一般是指通过一些人工的光源以及物体在光源下的反应来实现对物体的感知。前面课程介绍过的光度立体就是一种主动感知方法,我们可以利用不同方向光线下的图像来重建物体的表面:

像激光雷达和声呐则使用了飞行时间(time of flight, ToF)来测量物体到传感器的距离:


我们还可以使用结构光(structured light)来进行重建。结构光和双目相机非常相似,但不同的是结构光使用了投影仪来代替一个相机,并且投影仪会发出条纹状的光线从而在物体表面形成纹理。这样在重建时就可以利用条纹的先验信息以及它在物体上的响应来重建表面。

在Kinect中则使用了类似于结构光的技术。不过Kinect使用了红外光来发射信号,此时信号的发射和接收端都是Kinect自身。而且接收到的图案与物体的距离有关,因此可以利用图案的变化来反推出距离。和可见光相比,使用红外的优势在于它能够处理弱光环境下的成像问题,而且不依赖于物体自身或是环境的纹理。但需要注意的是红外光成像一般不能用于室外环境,而且图像分辨率会相对低一些。

Representation
Depth Images
最后我们来考虑如何表示三维空间中的物体。最基本的表示方法是使用深度图(depth image)来记录每个像素到相机位置的深度,但需要注意深度图是依赖于视角的,当相机位置发生改变时深度图也随之改变。同时,深度图中不包含任何的物体几何信息以及物体的位置信息,想要获得物体在空间中的实际位置则必须要先知道相机的位姿。


Point Clouds
更加流行的表示方法是使用点云(point cloud),它可以简单理解为一系列带坐标和深度的点。和深度图相比,点云数据与观察视角无关,且包含了物体表面的几何与位置信息。不过点云往往是相对稀疏的,而且它的质量也在很大程度上依赖于传感器的质量。

通过点云数据我们可以重建物体的表面以及法向信息,同时一些研究还表明我们可以利用点云来构造特征描述子,进而实现基于点云的物体识别。


