如何使用 OpenCV 消除图像中的径向畸变?

发布于 2024-12-18 23:03:17 字数 201 浏览 4 评论 0原文

我认为我应该使用 cv::remap 来消除失真,但无法弄清楚映射 const Mat& 的内容是什么。 map1, const Mat& map2 应该可以实现这一点。

我应该使用 cv::initUn DistorifyMap 来找出这些值吗?如果是这样,我真的很感激一个例子。我没有相机的内在参数或不知道如何计算它们。谢谢。

I think I should be using cv::remap to remove the distortion but can't figure out what the the maps const Mat& map1, const Mat& map2 to should be to achieve this.

Should I be using the cv::initUndistortRectifyMap to find out the values? If so, I'd really appreciate an example. I do not have the intrinsic camera parameters or don't know how to calculate them. Thanks.

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

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

发布评论

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

评论(1

不再让梦枯萎 2024-12-25 23:03:17

如果您想消除相机镜头造成的失真,您应该看看我前段时间写的这个答案 ,其中包含有关如何进行正确的相机校准的说明和参考。

我还建议这篇文章,其中提供了有关该过程的良好信息以及使用 OpenCV 的 C++ 接口。

If you are looking to remove the distortion caused by the camera lens you should take a look at this answer I wrote some time ago, which has intructions and references on how to do proper camera calibration.

I also suggest this post, which has good info on the procedure as well and uses the C++ interface of OpenCV.

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