节点文献
基于相机姿态信息的图像投影
Image Projecting Based on the Camera Stance Information
【摘要】 在很多实际应用中,需要将相机拍摄的图像由一个已知的相机姿态下投影到其它已知姿态下,文章根据源图像和目标图像对应的相机姿态计算出源图像到目标图像的投影映射矩阵,然后利用OpenCV里的cvWarpPerspective函数进行投影变换。然而直接利用cvWarpPerspective函数进行投影变换时,会出现一些问题,一些在源图像对应相机的光轴反方向的场景会出现在目标图像中。文章分析了出现这种错误的原因,并提出了解决方案,通过实验,验证了这种方案的正确性,得到了正确的投影结果。
【Abstract】 In many practical applications,it is required to project the image captured by the camera from a known stance to another stance.According to the initial camera stance and termination stance,the projection mapping matrix of the source images is calculated to the target image.Then the cvWarpPerspective function in the OpenCV is used to do projection transform.While,there may be some errors when the cvWarpPerspective function is used directly.Some scenes who are not in the target camera field of view may appear in the target image.In this article,the reasons for this error are analyzed,then solutions are proposed,and the correctness of this approach is verified by experiments,and finally the correct projection results are gotten.
【Key words】 camera stance; projection matrix; projection transformation; projection function;
- 【文献出处】 计算机与数字工程 ,Computer & Digital Engineering , 编辑部邮箱 ,2015年10期
- 【分类号】TP391.41
- 【被引频次】8
- 【下载频次】111