Skip to content

Commit 51e87a3

Browse files
author
guanhaining
committed
fix PinholeFullCamera Undistortion
1 parent 20d0d76 commit 51e87a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

online_calib/vins_camera2imu/src/camodocal/camera_models/PinholeFullCamera.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ PinholeFullCamera::liftProjective( const Eigen::Vector2d& p, Eigen::Vector3d& P
596596
xd0 = x * cdist * icdist2 + p1 * a1 + p2 * a2;
597597
yd0 = y * cdist * icdist2 + p1 * a3 + p2 * a1;
598598

599-
double x_proj = xd * fx + cx;
600-
double y_proj = yd * fy + cy;
599+
double x_proj = xd0 * fx + cx;
600+
double y_proj = yd0 * fy + cy;
601601

602602
error = sqrt( pow( x_proj - u, 2 ) + pow( y_proj - v, 2 ) );
603603
}

0 commit comments

Comments
 (0)