From ed2ddc9f706b956ea955ac86b3e7ec5e0b41d9cd Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 20 Feb 2014 19:41:05 +0600 Subject: 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. --- extern/libmv/files.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extern/libmv/files.txt') diff --git a/extern/libmv/files.txt b/extern/libmv/files.txt index cb6546ae8ff..316a94fcccc 100644 --- a/extern/libmv/files.txt +++ b/extern/libmv/files.txt @@ -41,8 +41,11 @@ libmv/simple_pipeline/bundle.h libmv/simple_pipeline/callbacks.h libmv/simple_pipeline/camera_intrinsics.cc libmv/simple_pipeline/camera_intrinsics.h +libmv/simple_pipeline/camera_intrinsics_impl.h libmv/simple_pipeline/detect.cc libmv/simple_pipeline/detect.h +libmv/simple_pipeline/distortion_models.cc +libmv/simple_pipeline/distortion_models.h libmv/simple_pipeline/initialize_reconstruction.cc libmv/simple_pipeline/initialize_reconstruction.h libmv/simple_pipeline/intersect.cc -- cgit v1.2.3