diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/libmv/libmv/simple_pipeline/bundle.cc | 4 | ||||
-rw-r--r-- | intern/libmv/libmv/simple_pipeline/camera_intrinsics.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/intern/libmv/libmv/simple_pipeline/bundle.cc b/intern/libmv/libmv/simple_pipeline/bundle.cc index c055846318a..4e76ae1f473 100644 --- a/intern/libmv/libmv/simple_pipeline/bundle.cc +++ b/intern/libmv/libmv/simple_pipeline/bundle.cc @@ -47,6 +47,10 @@ enum { OFFSET_PRINCIPAL_POINT_Y, // Distortion model coefficients. + // WARNING: camera intrinsics are not required to define/use all of those, + // but they have to define all of them up to the last one they need, in that + // exact same order. See e.g. how `PolynomialCameraIntrinsics` needs to define + // `OFFSET_K4`, even though it does not use it. OFFSET_K1, OFFSET_K2, OFFSET_K3, diff --git a/intern/libmv/libmv/simple_pipeline/camera_intrinsics.h b/intern/libmv/libmv/simple_pipeline/camera_intrinsics.h index cf0bdb76ccb..60ad1b5b8de 100644 --- a/intern/libmv/libmv/simple_pipeline/camera_intrinsics.h +++ b/intern/libmv/libmv/simple_pipeline/camera_intrinsics.h @@ -281,6 +281,7 @@ class PolynomialCameraIntrinsics : public CameraIntrinsics { OFFSET_K1, OFFSET_K2, OFFSET_K3, + OFFSET_K4, // Unused, needed to map properly with all deform parameters defined in bundle.cc. OFFSET_P1, OFFSET_P2, |