diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-02-20 17:41:05 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-04-17 15:28:41 +0400 |
commit | ed2ddc9f706b956ea955ac86b3e7ec5e0b41d9cd (patch) | |
tree | b8023b5604fef55f436c0d1be1a03e113f9ef39d /extern/libmv/CMakeLists.txt | |
parent | 39bfde674cfe4f6a9140b6d4c48a348de04d715a (diff) |
Support multiple distortion models, including a new division model
This commit makes it so CameraIntrinsics is no longer hardcoded
to use the traditional polynomial radial distortion model. Currently
the distortion code has generic logic which is shared between
different distortion models, but had no other models until now.
This moves everything specific to the polynomial radial distortion
to a subclass PolynomialDistortionCameraIntrinsics(), and adds a
new division distortion model suitable for cameras such as the
GoPro which have much stronger distortion due to their fisheye lens.
This also cleans up the internal API of CameraIntrinsics to make
it easier to understand and reduces old C-style code.
New distortion model is available in the Lens panel of MCE.
- Polynomial is the old well-known model
- Division is the new one which s intended to deal better with huge
distortion.
Coefficients of this model works independent from each other
and for division model one probably want to have positive values
to have a barrel distortion.
Diffstat (limited to 'extern/libmv/CMakeLists.txt')
-rw-r--r-- | extern/libmv/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt index f7173c3b1e1..f44c78c19aa 100644 --- a/extern/libmv/CMakeLists.txt +++ b/extern/libmv/CMakeLists.txt @@ -58,6 +58,7 @@ if(WITH_LIBMV) list(APPEND SRC libmv-capi.cc + libmv-util.cc libmv/image/array_nd.cc libmv/image/convolve.cc libmv/multiview/conditioning.cc @@ -72,6 +73,7 @@ if(WITH_LIBMV) libmv/simple_pipeline/bundle.cc libmv/simple_pipeline/camera_intrinsics.cc libmv/simple_pipeline/detect.cc + libmv/simple_pipeline/distortion_models.cc libmv/simple_pipeline/initialize_reconstruction.cc libmv/simple_pipeline/intersect.cc libmv/simple_pipeline/keyframe_selection.cc @@ -93,6 +95,7 @@ if(WITH_LIBMV) third_party/gflags/gflags_completions.cc third_party/gflags/gflags_reporting.cc + libmv-util.h libmv/base/id_generator.h libmv/base/scoped_ptr.h libmv/base/vector.h @@ -123,7 +126,9 @@ if(WITH_LIBMV) libmv/simple_pipeline/bundle.h libmv/simple_pipeline/callbacks.h libmv/simple_pipeline/camera_intrinsics.h + libmv/simple_pipeline/camera_intrinsics_impl.h libmv/simple_pipeline/detect.h + libmv/simple_pipeline/distortion_models.h libmv/simple_pipeline/initialize_reconstruction.h libmv/simple_pipeline/intersect.h libmv/simple_pipeline/keyframe_selection.h |