如何纠正桶形失真? [英] How to correct barrel distortion?

查看:226
本文介绍了如何纠正桶形失真?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何消除图像的桶形失真?我测试了一些算法,但结果不可接受.请帮忙!

Hi, how can we remove barrel distortion from a image? i tested some algorithms but the result was not acceptable. please help!

推荐答案

将桶形失真视为一种变换.您可以通过向外移动像素使它们看起来像电视一样来变换原始图像(这称为桶形失真).您只需应用相反的变换即可向内移动像素.因此,对于桶形失真图像中的每个像素,计算该像素将来自何处,并在调整后的图像中设置该像素.或者,访问调整后图像中的每个像素,并对该像素应用桶形失真变换,以确定将其放置在失真图像中的位置,然后从桶形失真图像中的该位置抓取像素并将其设置在调整后图像中.

这两种方法中的后一种会更好,但并不是完美的,因为不能在这种有损转换中使用.另外,根据转换的细节,您可能最终会丢失一些不可避免的边缘像素……这是不可避免的.

如果您详细描述您尝试过的方法以及为什么它不能被接受,那可能会帮助我们为您提供帮助.
Think of barrel distortion as a transformation. You transform the original image by moving the pixels outward so that they look like a TV (this is known as barrel distortion). You just apply the opposite transform to move the pixels inward. So, for each pixel in the barrel distored image, calculate where that pixel would have come from, and set that pixel in the adjusted image. Or, visit each pixel in the adjusted image and apply a barrel distortion transformation to that pixel to determine where it would be placed in the distorted image, then grab the pixel from that location in the barrel distorted image and set it in the adjusted image.

The latter of those 2 approaches will work better, but it will not be perfect, as it cannot be in this type of lossy transformation. Also, depending on the details of the transformation, you may end up with some missing edge pixels... that is unavoidable.

If you describe in detail what you''ve tried and why it is not acceptable, that may help us help you.


亲爱的朋友,我想找到合适的X和Y.有什么算法可以校正正确的X和Y或任何方程式可以校正错误的位置?
Hi dear friend, i want to find the right X and Y. is there any algorithm to correct the right X and Y or any equation to correct the wrong position?


这篇关于如何纠正桶形失真?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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