Image stitching is to construct panoramic images with wider field of vision (FOV) from some images captured from different viewing positions. To solve the problem of fusion ghosting in the stitched image, seam-driven methods avoid the misalignment area to fuse images by predicting the best seam. Currently, as standard tools of the OpenCV library, dynamic programming (DP) and GraphCut (GC) are still the only commonly used seam prediction methods despite the fact that they were both proposed two decades ago. However, GC can get excellent seam quality but poor real-time performance while DP method has good efficiency but poor seam quality. In this paper, we propose a deep learning based seam prediction method (DSeam) for the sake of high seam quality with high efficiency. To overcome the difficulty of the seam description in network and no GroundTruth for training we design a selective consistency loss combining the seam shape constraint and seam quality constraint to supervise the network learning. By the constraint of the selection of consistency loss, we implicitly defined the mask boundaries as seams and transform seam prediction into mask prediction. To our knowledge, the proposed DSeam is the first deep learning based seam prediction method for image stitching. Extensive experimental results well demonstrate the superior performance of our proposed Dseam method which is 15 times faster than the classic GC seam prediction method in OpenCV 2.4.9 with similar seam quality.
翻译:图像拼接是从不同视角拍摄的图像中构建具有更宽视野的全景图像。为解决拼接图像中的融合鬼影问题,接缝驱动方法通过预测最佳接缝来规避未对齐区域进行图像融合。目前,作为OpenCV库的标准工具,动态规划(DP)和图割(GC)尽管均在二十年前提出,却仍是唯一广泛使用的接缝预测方法。然而,GC能获得优异的接缝质量但实时性较差,而DP方法效率高但接缝质量不佳。本文提出一种基于深度学习的接缝预测方法(DSeam),旨在兼顾高接缝质量与高效率。为克服网络中接缝描述的困难以及缺乏训练真值的问题,我们设计了一种结合接缝形状约束与接缝质量约束的选择一致性损失函数来监督网络学习。通过选择一致性损失的约束,我们隐式地将掩膜边界定义为接缝,并将接缝预测转化为掩膜预测。据我们所知,所提出的DSeam是首个基于深度学习的图像拼接接缝预测方法。大量实验结果表明,本文提出的DSeam方法具有优越性能,在OpenCV 2.4.9中其速度比经典GC接缝预测方法快15倍,且接缝质量相当。