是否有解决此类投影重建几何问题的算法?

发布于 2024-09-19 12:46:33 字数 395 浏览 1 评论 0原文

我们有一个上面有红色方块的网格。这意味着我们有一个由 3 个正方形组成的数组(角度 == 90 度),据我们所知,它们具有相同的大小,位于同一平面上,并且相对于它们所在的平面具有相同的旋转,并且不在同一直线上飞机。

我们有一个包含正方形平面的空间投影。

im 1

我们想用正方形转动我们的平面投影,这样我们就会看到它就像它面向我们一样,一般来说我们需要用于旋转原始平面投影的每个点的公式,使其面向我们,如下图所示。

可以用什么公式来解决这样的问题,如何解决,有人遇到过这样的事情吗?

im 2

We have a grid with red squares on it. Meaning we have an array of 3 squares (with angles == 90 deg) which as we know have same size, lying on the same plane and with same rotation relative to the plane they are lying on, and are not situated on same line on plane.

We have a projection of the space which contains the plane with squares.

im 1

We want to turn our plane projection with squares so that we would see it like it's facing us, in general we need a formula for turning each point of that original plane projection so that it would be facing us like on the image below.

What formulas can be used for solving such problem, how to solve it, has any one faced something like this before?

im 2

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2024-09-26 12:46:33

这是查找保留直线的四边形之间的映射的特殊情况。这些通常称为单应变换。在这里,其中一个四边形是正方形,因此这是一种流行的特殊情况。您可以通过谷歌搜索这些术语(“四元到四元”等)来查找解释和代码,但这里有一些适合您的。

透视变换估计

游戏论坛讨论

将四边形图像提取到矩形

投影变形 & ;映射

用于图像变形的投影映射作者:保罗·赫克伯特。

数学不是特别令人愉快,但也不是那么难。您还可以从上述链接之一找到一些代码。

This is a special case of finding mappings between quadrilaterals that preserve straight lines. These are generally called homographic transforms. Here, one of the quads is a square, so this is a popular special case. You can google these terms ("quad to quad", etc) to find explanations and code, but here are some for you.

Perspective Transform Estimation

a gaming forum discussion

extracting a quadrilateral image to a rectangle

Projective Warping & Mapping

ProjectiveMappings for ImageWarping by Paul Heckbert.

The math isn't particularly pleasant, but it isn't that hard either. You can also find some code from one of the above links.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文