When anordinary camera is pointed upward (for example, to photograph a tall building)vertical lines at the edges tilt inward in the resulting image. If the camera is pointed downward, vertical linesat the edges will tilt outward. Depending on the subject, the effect can add to the sense of depth, or it can be a distraction.
当普通相机在向上(例如拍摄较高的建筑物时),垂直的线会内聚在一起,如果相机向下拍摄,则边缘处垂直的线会往两边发散。透视现象,对于有的物体来说,会增加一种深度感,而有的则不然,会带来干扰。
有的人喜欢这种照片带来的深度感,而有人想要去掉建筑物的透视现象。
因为课题的原因,搜索了一些关于透视矫正目前的状况,一下是google搜索关键字Perspective Correction得到的一些资料,整理如下,仅供参考。
1. 有个叫 hugin的软件,是通过手动标控制点(水平和垂直的控制线)来进行透视矫正的,
http://hugin.sourceforge.net/tutorials/perspective/en.shtml
以下是矫正前后的两张图
Source code:
目前还没有源代码,有exe文件
http://sourceforge.net/projects/hugin/
2. PerspectiveCorrect on Apple app. by SmoothMobile.LLC
https://itunes.apple.com/us/app/perspective-correct-fix-distortion/id584634318?mt=8
据评论说还很好用
矫正前后:
SourceCode:
目前还没有源代码, 安装文件应该在itues能搜到。
3. Adobe也作过,lightroom或photoshop也有6.
根据提供的视频,也是需要手动标控制点的,然后做的verticaland horizontal 矫正
https://helpx.adobe.com/lightroom/how-to/lightroom-correct-perspective-upright.html
4. 有个叫gimp的软件
主要用来矫正水平或垂直方向的透视effect
步骤如下:
a. load 原始数据
b. usersplace a guideline
c. 算法会根据这个guideline算出一个matrix
d. SetRotate Tool Options
e. Completerotation
f. Auto cropSourceCode
Source Code:
没有源代码
http://graphicssoft.about.com/od/gimp/ss/rotatestraight.htm
5. Lifehacker
也是一款fix 建筑物的垂直透视矫正
Source code:
目前还没有
http://lifehacker.com/5983305/perspective-image-correction-fixes-your-tilted-photos
6. Camera Correct model
two-point perspective 说的不是特别清楚,从这句话来看,应该是也作建筑物或者风景的透视矫正的,“The amount of correction you need to use depends on howsteeply the camera tilts. For example, a camera that looks up from ground levelto the top of a high building will need more correction than a camera thatlooks toward the horizon.”
7. https://www.youtube.com/watch?v=K9Mwq9c9MH4
也是用控制点作的,说是make vertical more vertical
8. Mathworks作的PerspectiveControl/Correction
选用了4个corners.
没有实验结果,但是有源代码哦!
http://www.mathworks.com/matlabcentral/fileexchange/35531-perspective-control--correction
9. AfterShot Pro
“ Each corner ofthe image can be moved in up/down and left/right direction to adjust theperspective. ”也是手动调整控制点,实现矫正的。
http://www.aftershotpro.com/en/plugins/zperspector/