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],即为左视 ...
【技术特征摘要】
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。