加入两个图像

Pra*_*ora 10 python opencv image image-processing image-stitching

I am quite new to OpenCV and DIP in general so I need bit of help in stitching of two images. The problem background is, there are two pieces which have their adhesives/glue torn apart from two joined pieces of plastic. This is the image of "glue" on the base:

img1

and this is the image of "glue" on the other attached face:

img2

As the background of the the images is not the same, I read that it's not possible to do stitching (because different features). And these two pieces are like jigsaw pieces which needs to rotated, so the problem is not straightforward like panaroma stitching.

How do I join such images together?

我当时想找到白色的countours,然后保持一张图像固定,旋转另一幅图像,并找到合并countcounts的区域,还存储我旋转的角度。完美匹配时,该区域将变为最小。

Mar*_*ell 5

这不是一个完整的答案,(没有人说答案必须是完整的),但它可能会激发您或其他人制定出一种方法。

我垂直翻转和水平翻转你的一张图像,然后将它们分别放入 Photoshop 的两个单独图层中。然后我将“混合模式”设置差异,这始终是对齐图像的好方法 - 因为当图像对齐并且没有差异时,它们通常会变黑。

然后我在另一层上移动了一层。我想你需要做一些类似的事情来解决你的问题——你只需要找到你的代码可以最大化或最小化的东西。

在此处输入图片说明