合并两个或多个部分重叠的图像

时间:2017-12-22 07:03:46

标签: opencv image-processing ffmpeg imagemagick image-manipulation

如果有两个或多个部分重叠的图像,就像在此屏幕截图中一样,我想将它们合并/合并为一个:

overlapping images

彩色正方形将是无损格式的源图像,不需要旋转。

我想要的结果就像使用Adobe Photoshop的“自动混合图层”命令,因此自动对齐和自动混合会自动执行:

https://helpx.adobe.com/photoshop/using/combine-images-auto-blend-layers.html

1 个答案:

答案 0 :(得分:1)

谢谢大家的评论。在这种情况下,最适合的软件是OpenCV,其中cv::Stitcher API为@aergustal指出。如果图片有很好的重叠,它的效果非常好,否则会显示以下错误:

Can't stitch images, error code = 1

请注意,为了能够使用./cpp-example-stitching命令,您必须从源代码编译它。甚至Windows也没有预编译它,至少我下载的版本。更多信息:

High level stitching API (Stitcher class)

相关问题