整流鱼眼镜头到飞机上

问题描述 投票:0回答:1

我有一个鱼眼镜头我知道主要点C =(x_0,y_0)和r(扭曲的径向距离)和Theta(光轴和入射光线之间的角度)之间的关系,它遵循等距模型r(Theta)= f*Theta

我想使用这些参数来纠正这个图像Image to rectify,因为我遵循这些步骤,但我不确定我的方法是否正确,因为我最后留下负值:

1- shift the origin to the principal point

2- append to each point in the image plane  1 for the z coordinate 
(which corresponds to a focal length equal to 1): {x,y}  ==> {x,y,1}

3- calculate the angle Thea between {x, y, 1} and the point {0,0,1}

4- calculate the angle Beta in the image plane Beta = ArcTan(y/x)

5- calculate the image rectified coordinates:

      x_rec = x_0 +[ Cos(Beta) * r(Theta)]

     y_rec = y_0 +[ Sin(Beta) * r(Theta)]
computer-vision geometry projection camera-calibration fisheye
1个回答
0
投票

在不知道这种关系的情况下,你无法盲目地纠正这种扭曲。你需要校准。

拍摄棋盘或尺子的照片,并绘制图像和现实世界中心距离之间的关系。

可能会有低次多项式拟合。不应该有太多的切向扭曲。

© www.soinside.com 2019 - 2024. All rights reserved.