给定平面法向量和相机观察方向,校正平面结构的透视图像

发布于 2024-09-27 11:04:05 字数 235 浏览 2 评论 0 原文

我在多个视角下拍摄了建筑物正面的图像。然后我使用bundler来重建建筑物的3D点云。然后我使用 RANSAC 方法在点云中查找立面的平面。

这为我提供了平面及其表面法线的参数。

从捆绑器中,我还获得了相机旋转矩阵,我用它来计算相机的观看方向。

现在考虑到我有平面的法线和相机的观看方向,我想用它来校正图像,即好像相机的观看方向拍摄的图像与平面的法线相同。

如何从这两个向量计算投影变换矩阵?

I have taken images of the facade of a building under multiple view points. Then I use bundler to reconstruct the 3D point cloud of the building. Then I use a RANSAC method to find the plane of the facade in the point cloud.

This gives me the parameters for the plane and its surface normal.

From bundler I also get the camera rotation matrices, which I use to calculate the viewing directions of the cameras.

Now given that I have the normal of the plane and the camera viewing directions, I would like to use this to rectify the images, i.e. as if the images where taken with the camera's viewing direction being the same as the normal of the plane.

How can I calculate the projective transformation matrix from these two vectors?

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

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

发布评论

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

评论(1

故笙诉离歌 2024-10-04 11:04:05

通过旋转可以使平面法线n与相机的光轴o对齐。通过取 -no 的叉积可以找到该旋转的轴,并根据这些向量之间的角度计算旋转量(使用点积)。此信息足以构建 3x3 旋转矩阵,然后您可以使用该矩阵来扭曲图像。

您可能会发现以下文章非常有用,因为它更详细。它还提出了一些简化,将计算减少到仅对平面法线分量进行一些基本算术运算。

长度和角度的限制
KI Kanatani - 计算机视觉、图形和图像处理,1988 - Elsevier

http://www.iim.cs.tut.ac.jp/~kanatani/papers/cvgip41-88.pdf

The plane normal n can be brought in line with the camera's optical axis o with a rotation. The axis of this rotation is found by taking the cross product of -n and o and the amount to rotate is computed from the angle between these vectors (use dot product). This information is sufficient to build up a 3x3 rotation matrix that you can then use to warp the image.

You may find the following paper very useful as it goes into further detail. It also presents some simplifications that reduce the computation to just a few basic arithmetic operations on the components of the plane normal.

Constraints on length and angle
KI Kanatani - Computer Vision, Graphics, and Image Processing, 1988 - Elsevier

http://www.iim.cs.tut.ac.jp/~kanatani/papers/cvgip41-88.pdf

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