基于一维查找表的相移结构光实时相位计算

Real time phase calculation of phase shifted structured light based on one-dimensional look-up table

  • 摘要: 针对相移结构光中相位计算环节,提出了一种基于一维查找表的相位实时解码算法。首先根据相位计算公式中的反正切函数性质,得到四个象限之间的相位转化关系。基于得到的转换关系,使用线性函数将第一象限中的所有坐标点映射至某个离散整数区间中,结合该区间与线性函数提前建立相位的一维查找表。在相位计算过程中,首先利用相关信息计算一维查找表的索引,直接获取相位值,然后利用线性插值法与相位转换关系调整该相位值,得到最终的真实相位。通过实验验证了所提算法的有效性,与使用传统相位计算方法相比,本文提出的方法最快可提升3.97倍,使用线性插值后,相位精度可达10^ - 8。与传统的多项式逼近算法相比,该算法速度提升了1.29倍;与传统的一维查找表算法相比,该算法速度提升了1.22倍。

     

    Abstract: We propose a fast phase decoding algorithm based on a one-dimensional look-up table. Firstly, according to the property of the arctangent function in the phase calculation formula, the phase relationship between the four quadrants is obtained. A linear function is used to map the coordinate points in the first quadrant to a discrete integer interval, and a one-dimensional look-up table of phases is established in advance by combining the interval with the linear function. In the process of phase calculation, firstly, the index of the one-dimensional look-up table is calculated by using relevant information to directly obtain the phase value, and then the phase value is adjusted by the linear interpolation method and phase relationship to obtain the final real phase. Experiments have verified the effectiveness of the proposed algorithm. Compared with the traditional phase calculation method, the proposed method can improve the speed by 3.97 times, 1.29 times compared with the traditional polynomial approximation algorithm, and 1.20 times compared with the traditional one-dimensional look-up table algorithm.

     

/

返回文章
返回