8000 Avoid hard crash if Jacobian matrix is rank deficient by mihaidusmanu · Pull Request #1557 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Avoid hard crash if Jacobian matrix is rank deficient #1557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/estimators/pose.cc
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ bool RefineAbsolutePose(const AbsolutePoseRefinementOptions& options,
ceres::Covariance::Options options;
ceres::Covariance covariance(options);
std::vector<const double*> parameter_blocks = {qvec_data, tvec_data};
covariance.Compute(parameter_blocks, &problem);
if (!covariance.Compute(parameter_blocks, &problem)) {
return false;
}
// The rotation covariance is estimated in the tangent space of the
// quaternion, which corresponds to the 3-DoF axis-angle local
// parameterization.
Expand Down Expand Up @@ -490,7 +492,9 @@ bool RefineGeneralizedAbsolutePose(
ceres::Covariance::Options options;
ceres::Covariance covariance(options);
std::vector<const double*> parameter_blocks = {qvec_data, tvec_data};
covariance.Compute(parameter_blocks, &problem);
if (!covariance.Compute(parameter_blocks, &problem)) {
return false;
}
covariance.GetCovarianceMatrixInTangentSpace(parameter_blocks,
rot_tvec_covariance->data());
}
Expand Down
0