iOS& OpenCV:图像注册/对齐 [英] iOS & OpenCV: Image Registration / Alignment

查看:141
本文介绍了iOS& OpenCV:图像注册/对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个在iOS中组合类似于HDR的多个图像的项目。我已经设法通过相机获得3张不同曝光的图像,现在我想对齐它们,因为在捕捉过程中,一只手必须动摇并导致所有3张图像的对齐方式略有不同。

I am doing a project of combining multiple images similar to HDR in iOS. I have managed to get 3 images of different exposures through the Camera and now I want to align them because during the capture, one's hand must have shaken and resulted in all 3 images having slightly different alignment.

我已经导入了OpenCV框架,我一直在探索OpenCV中的函数来对齐/注册图像,但一无所获。在OpenCV中实际上有一个功能来实现这一目标吗?如果没有,还有其他选择吗?

I have imported OpenCV framework and I have been exploring functions in OpenCV to align/register images, but found nothing. Is there actually a function in OpenCV to achieve this? If not, is there any other alternatives?

谢谢!

推荐答案

没有一个名为 align 的功能,你需要自己动手实现,或者找一个已经实现的功能。

There is no single function called something like align, you need to do/implement it yourself, or find an already implemented one.

这是一个解决方案。

您需要从所有3个图像中提取关键点并尝试匹配它们。确保您的关键点提取技术对于光照变化是不变的,因为由于曝光不同,所有这些技术都具有不同的强度值。您需要匹配您的关键点并找出一些差异。然后你可以使用差异来对齐你的图像。

You need to extract keypoints from all 3 images and try to match them. Be sure that your keypoint extraction technique is invariant to illumination changes since all have different intensity values because of different exposures. You need to match your keypoints and find some disparity. Then you can use disparity to align your images.

记住这个答案是如此肤浅,首先你需要做一些关于关键点/描述符提取的研究,关键点/描述符匹配。

Remember this answer is so superficial, for details first you need to do some research about keypoint/descriptor extraction, and keypoint/descriptor matching.

祝你好运!

这篇关于iOS& OpenCV:图像注册/对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆