971001 - 如何使鱼眼图像消失? [英] 971001 - how to dewarp a fisheye image?

查看:102
本文介绍了971001 - 如何使鱼眼图像消失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用像Bosch 5000 Panorama这样的相机可以产生鱼眼图像,我们可以将其消失。建议使用一些去扭曲方法,但我更喜欢的是矩形,即给出一个中心,它是图像上的一个点,一个内半径和一个外半径将边界内的像素映射到目标矩形。



1.我需要通过GPU完成操作。

2.我认为可以使用OpenCV或任何其他库来实现,但我不这样做知识。此外,我打开使用自定义代码。

3.我正在寻找这样的东西:链接

4.我正在寻找一个C#解决方案。



如有任何建议,我们表示赞赏。



我的尝试:



我试图将整个图像中的像素逐个映射到客户端矩形,但我没有得到好结果。这种观点显然不自然。现在我认为我需要一个矩形解决方案。

解决方案

可能可以使用 Bosch Video SDK 完成,但这不适用于胆小的人,请在此处查看搜索结果:搜索 [ ^ ]


请参见此处: c# - 圆形鱼眼图像缩小为平面图像 - 堆栈溢出 [ ^ ] - 你不会找到完全符合你想要的代码,所以你将不得不使用转换在那里给出的公式,并准确地解决你需要的自己。

Using cameras like Bosch 5000 Panorama gives a fisheye image that we've to dewarp it. Some dewarping methods are suggested, but what I prefer is rectangular, that's giving a center which is a point on the image, an inner radius and an outer one will map the pixels inside the boundary to a destination rectangle.

1. I need the operation be done by GPU.
2. I think OpenCV or any other library may be available to do it, but I don't know how. Besides, I'm open to use a custom code.
3. I'm looking for such a thing: link
4. I'm looking for a C# solution.

Any suggestions are appreciated.

What I have tried:

I tried to map the pixels one by one from the whole image into the client rectangle, but I didn't get a good result. The perspective is evidently unnatural. Now I think that I need a rectangular solution.

解决方案

It probably can be done with the Bosch Video SDK, but this is not for the faint hearted, see search results here: Search[^]


See here: c# - Circular Fisheye Image dewarp to flat image - Stack Overflow[^] - you aren't going to find code which exactly does what you want, so you are going to have to use the transformation formulae given there and work out exactly what you need yourself.


这篇关于971001 - 如何使鱼眼图像消失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆