一种基于块匹配视差估计的中间视图合成方法技术

技术编号:6059163 阅读:505 留言:0更新日期:2012-04-11 18:40
一种基于块匹配视差估计的中间视图合成方法,为对取自同一场景同一时刻不同角度的两幅左右图像进行视差估计,根据求出的视差图通过图像插值得到原始视图间直线(基线)上任意位置虚拟视图,首先分别以左右视图为目标图像进行视差估计,采用基于块匹配的视差估计算法,求出左视到右视以及右视到左视的两幅视差图;然后依据这两幅视差图分别合成初步的中间视图;最后对合成的视图进行空洞填充,得到最终结果。本发明专利技术针对左右视图由水平线上摄像机组拍摄,只具有水平方向视差的特点,只在水平方向进行搜索,减少了计算量,降低了算法运行时间;实验结果表明,采用本发明专利技术在视图前景距离摄像机较远或图像灰度变化平缓的情况下能得到良好的合成结果。

An intermediate view synthesis method based on block matching disparity estimation

An intermediate view synthesis block matching method based on disparity estimation, disparity estimation is performed on the same scene taken from different angles at the same time the two pieces of the left and right images, according to the disparity map obtained by image interpolation to get the original view line (baseline) on any position of the virtual view, first with left and right view as the target image for disparity estimation, the estimation algorithm of block matching based on parallax, calculate left to right view and right to left two parallax images; then based on these two parallax images were synthesized intermediate view preliminary views; finally the synthesis of hole filling, to get the final result. The present invention for the left view taken by the horizontal line camera group, features only has horizontal parallax, only to search in the horizontal direction, to reduce the amount of computation and reduce the running time of the algorithm; the experimental results show that the invention in the far distance view camera or foreground image gray change under gentle conditions can get results good.

【技术实现步骤摘要】

【技术保护点】
一种基于块匹配视差估计的中间视图合成方法,其特征在于实现步骤如下:  (1)输入拍摄自同一场景,同一时刻,摄像机位于同一水平高度的左右两幅图像,要求这两幅图像仅在拍摄视角上存在差异;  (2)若两幅输入图像为彩色图像,则分别将其转化为灰度图像;若两幅输入图像为灰度图像,则执行步骤(3);  (3)判断两幅输入图像尺寸是否相同,若不同,提示错误并跳出;若相同,执行步骤(4);  (4)以右视图为目标图像,左视图为参考图像,将目标视图分为固定大小的块,在参考图像中逐个分别搜索与目标图像中每个块最相近的块,计算出每个目标图像块与参考图像中匹配块之间的位移矢量d↑[LR],即为左视图到右视图中的块视差...

【技术特征摘要】

【专利技术属性】
技术研发人员:祝世平于洋
申请(专利权)人:北京航空航天大学
类型:发明
国别省市:11

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1