MCPcopy Create free account
hub / github.com/colmap/colmap / ComputeMaxErrorInCamera

Function ComputeMaxErrorInCamera

src/colmap/estimators/generalized_pose.cc:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79double ComputeMaxErrorInCamera(const std::vector<size_t>& camera_idxs,
80 const std::vector<Camera>& cameras,
81 const double max_error_px) {
82 THROW_CHECK_GT(max_error_px, 0.0);
83 double max_error_cam = 0.;
84 for (const auto& camera_idx : camera_idxs) {
85 max_error_cam += cameras[camera_idx].CamFromImgThreshold(max_error_px);
86 }
87 return max_error_cam / camera_idxs.size();
88}
89
90bool LowerVector3d(const Eigen::Vector3d& v1, const Eigen::Vector3d& v2) {
91 if (v1.x() < v2.x()) {

Callers 1

Calls 2

sizeMethod · 0.80
CamFromImgThresholdMethod · 0.45

Tested by

no test coverage detected