Bug or bad documentation in cvUndistortPoints

View: New views
1 Messages — Rating Filter:   Alert me  

Bug or bad documentation in cvUndistortPoints

by Pinetree :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The function cvUndistortPoints undistorts a list of 2D points. Its documentation is here : http://opencv.willowgarage.com/documentation/camera_calibration_and_3d_reconstruction.html

It first transforms the points using the focus distance and the principal point. Then it applies the undistortion calculation. According to the documentation, it then uses the focus and principal point to go back to the original coordinate system. However in practice this last step does not happen. The latest revision does not contain code to do this, which is very confusing.

I do not know if the points are left in the camera coordinate system on purpose. However if they are, then the documentation should mention so, instead of saying that they are not. The pseudo-code in the documentation clearly gives them back in original coordinates :
u' = x*fx' + cx'
v' = y*fy' + cy',

So IMHO either the documentation should be changed, or the function should be changed.

friendly greets


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Opencvlibrary-devel mailing list
Opencvlibrary-devel@...
https://lists.sourceforge.net/lists/listinfo/opencvlibrary-devel