如何比较两个图像并将它们转换为匹配?

发布于 2025-01-16 00:05:02 字数 522 浏览 2 评论 0原文

我正在拍摄两张相似的图像,并将一张放在另一张上面作为半透明覆盖层。 我现在想要实现的是比较它们之间的差异,并变换(缩放、裁剪、移动和旋转)顶部的图像,使其尽可能与下面的图像匹配。

这是一个视觉表示:

两个单独的图像

Mismatching when on top

我正在尝试在 Flutter 中实现这一点,但其他解决方案方法也有帮助。

编辑:我已经用 Stack 小部件制作了这个,我可以通过平移来转换顶部的图像。但我正在寻找一种通过分析图像使这件事自动化的方法。

I am taking two similar images and putting one on top of the other as semi transparent overlay.
What I'm trying to achieve now is to compare the difference between them and transform (scale, crop, move and rotate) the image on top so it matches the image underneath as good as it can.

Here is a visual representation:

Two separate images

Mismatching when on top

I'm trying to achieve this in Flutter, but other approaches to a solution help aswell.

Edit: I already made this with a Stack widget I can transform the image on top by panning. But I am looking for a way to make this thing automated by analyzing the images.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文