Skip to content

Commit

Permalink
Merge branch 'develop' into dev/sfmdata
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor authored Dec 14, 2023
2 parents 3dbd5e5 + 6b018d0 commit 8385a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aliceVision/camera/Pinhole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Eigen::Matrix<double, 2, Eigen::Dynamic> Pinhole::getDerivativeProjectWrtParams(
ret.block<2, 2>(0, 0) = getDerivativeProjectWrtScale(pose, pt3D);
ret.block<2, 2>(0, 2) = getDerivativeProjectWrtPrincipalPoint(pose, pt3D);

if (hasDistortion())
if (_pDistortion != nullptr)
{
const size_t distortionSize = _pDistortion->getDistortionParametersCount();
ret.block(0, 4, 2, distortionSize) = getDerivativeProjectWrtDisto(pose, pt3D);
Expand Down

0 comments on commit 8385a55

Please sign in to comment.