变换三角形网格 OpenCV

发布于 2025-01-15 16:40:28 字数 215 浏览 2 评论 0原文

我正在尝试用 python 中的 OpenCV 转换图片。

因此,我在图像上放置了网格中的点,我也可以移动这些点。 然后,我将每个网格矩形分成两个三角形,并获得它们的坐标:

  • 它们在开始时的位置以及
  • 在我移动一些点后它们在的位置 现在我想变换图像,使其适合新的网格,但不会看到三角形边缘上的线条或图像片段因不同变换而被撕裂。

帮助!

I am trying to transform a picture with OpenCV in python.

Therefore I have points in a grid placed on the image that I can also move.
I then split each grid rectangle into two triangles and I have their coordinates:

  • where they were at the beginning and
  • where they are after i moved some points around
    Now I want to transform the image so it fits the new mesh but without seeing lines on the edges of the triangles or image pieces getting ripped by transforming differently.

Help!

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

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

发布评论

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