Smeterlink
Smeterlink

Reputation: 786

Combine two or more images that partially overlap

Having two or more images that partially overlap, like in this screenshot, I want to combine/merge them into one:

overlapping images

The coloured squares would be the source images, in lossless format, and no rotation is required.

The result I want is like using the "Auto-Blend Layers" command from Adobe Photoshop, so auto-align and auto-blend is performed automatically:

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

Upvotes: 8

Views: 6892

Answers (1)

Smeterlink
Smeterlink

Reputation: 786

Thank you all for the comments. The software that suits best in this case is OpenCV with the cv::Stitcher API as @aergustal pointed out. It works extremely well provided that pictures have a decent overlapping, otherwise the following error will be displayed:

Can't stitch images, error code = 1

Note that to be able to use the ./cpp-example-stitching command, you have to compile it from source code. Even Windows doesn't come with it precompiled, at least the version I've downloaded. More information:

High level stitching API (Stitcher class)

Upvotes: 3

Related Questions