From 805c52b1fdb5ac6a0caf8276bf0d13c324c57716 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 21 Apr 2020 16:41:23 +0200 Subject: 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. --- intern/libmv/libmv/simple_pipeline/bundle.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern/libmv') 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( + AddResidualBlockToProblemImpl( invariant_intrinsics, marker.x, marker.y, marker_weight, -- cgit v1.2.3