diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-04-21 17:41:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-04-21 17:41:23 +0300 |
commit | 805c52b1fdb5ac6a0caf8276bf0d13c324c57716 (patch) | |
tree | ec357c1da4e8782c1b64b30127eac68a0d0b60ae /intern/libmv | |
parent | b08e18ff36bb49d8e5651f8f53fff972bd773b61 (diff) |
Libmv: Cleanup, naming
Initial bundle adjustment only supported OpenCV's radial distortion
model, so the cost functor was called after it.
Nowadays it supports more than this single model, so naming was a bit
wrong and misleading.
Diffstat (limited to 'intern/libmv')
-rw-r--r-- | intern/libmv/libmv/simple_pipeline/bundle.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/libmv/libmv/simple_pipeline/bundle.cc b/intern/libmv/libmv/simple_pipeline/bundle.cc index fb59e20d84c..2976dd5053f 100644 --- a/intern/libmv/libmv/simple_pipeline/bundle.cc +++ b/intern/libmv/libmv/simple_pipeline/bundle.cc @@ -138,8 +138,8 @@ void ApplyDistortionModelUsingIntrinsicsBlock( // // This functor can only be used for distortion models which have analytically // defined Apply() function. -struct OpenCVReprojectionErrorApplyIntrinsics { - OpenCVReprojectionErrorApplyIntrinsics( +struct ReprojectionErrorApplyIntrinsics { + ReprojectionErrorApplyIntrinsics( const CameraIntrinsics *invariant_intrinsics, const double observed_distorted_x, const double observed_distorted_y, @@ -421,7 +421,7 @@ void AddResidualBlockToProblem(const CameraIntrinsics *invariant_intrinsics, double *camera_R_t, EuclideanPoint *point, ceres::Problem* problem) { - AddResidualBlockToProblemImpl<OpenCVReprojectionErrorApplyIntrinsics>( + AddResidualBlockToProblemImpl<ReprojectionErrorApplyIntrinsics>( invariant_intrinsics, marker.x, marker.y, marker_weight, |