提出一种基于RGB颜色格雷码的结构光编码方法。该方法是将红、蓝条纹按二进制格雷码编码方式进行编排,并在红、蓝条纹之间用一个像素的绿条纹作为分界。由于投射光强相同,基于CCD的摄像机拍得的条纹图像中绿条纹向红、蓝区域扩散程度等同,提取绿条纹的中心即可获得条纹的准确定位,再依据三角法原理实现三维物体测量。文中具体介绍了该方法的编码、解码原理,分析了基于HSI空间的彩色图像分割方法,给出了基于3dsMAX和MATLAB环境下的重构仿真实验结果。
A structured light 3D encoding scheme based on RGB color Gray code is presented. The encoding scheme uses the standard binary Gray pattern with red and blue stripes. A one-pixel-wide green line is used to separate the red and blue bands. If the brightness is approximately the same, the green strip in the strip image captured by CCD camera will shift towards the red and blue bands equally; the strip can be located accurately by extracting the central lline of the green strip. The 3D measurement is realized by trigonometry method. The system setup, encoding and decoding principles, and color code pattern design are presented ; the segmentation of color image based on HSI color space is analyzed. Finally, reconstruction simulation experimental results of 3dsMAX and MATLAB are given.