Skip to content

Commit

Permalink
Merge pull request #2875 from rgolovanov:master
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Feb 23, 2021
2 parents 8ab0020 + 24baeaa commit 974f90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ccalib/src/omnidir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ void cv::omnidir::undistortPoints( InputArray distorted, OutputArray undistorted
Vec3d Xs = Xw / cv::norm(Xw);

// reproject to camera plane
Vec3d ppu = Vec3d(Xs[0]/(Xs[2]+_xi), Xs[1]/(Xs[2]+_xi), 1.0);
Vec3d ppu = Vec3d(Xs[0]/Xs[2], Xs[1]/Xs[2], 1.0);
if (undistorted.depth() == CV_32F)
{
dstf[i] = Vec2f((float)ppu[0], (float)ppu[1]);
Expand Down

0 comments on commit 974f90f

Please sign in to comment.