Blender Git Commit Log
Git Commits -> Revision 6fbc418
Revision 6fbc418 by Sergey Sharybin (master) November 14, 2011, 06:41 (GMT) |
Assorted camera tracker improvements - Add support for refining the camera's intrinsic parameters during a solve. Currently, refining supports only the following combinations of intrinsic parameters: f f, cx, cy f, cx, cy, k1, k2 f, k1 f, k1, k2 This is not the same as autocalibration, since the user must still make a reasonable initial guess about the focal length and other parameters, whereas true autocalibration would eliminate the need for the user specify intrinsic parameters at all. However, the solver works well with only rough guesses for the focal length, so perhaps full autocalibation is not that important. Adding support for the last two combinations, (f, k1) and (f, k1, k2) required changes to the library libmv depends on for bundle adjustment, SSBA. These changes should get ported upstream not just to libmv but to SSBA as well. - Improved the region of convergence for bundle adjustment by increasing the number of Levenberg-Marquardt iterations from 50 to 500. This way, the solver is able to crawl out of the bad local minima it gets stuck in when changing from, for example, bundling k1 and k2 to just k1 and resetting k2 to 0. - Add several new region tracker implementations. A region tracker is a libmv concept, which refers to tracking a template image pattern through frames. The impact to end users is that tracking should "just work better". I am reserving a more detailed writeup, and maybe a paper, for later. - Other libmv tweaks, such as detecting that a tracker is headed outside of the image bounds. This includes several changes made directly to the libmv extern code rather expecting to get those changes through normal libmv channels, because I, the libmv BDFL, decided it was faster to work on libmv directly in Blender, then later reverse-port the libmv changes from Blender back into libmv trunk. The interesting part is that I added a full Levenberg-Marquardt loop to the region tracking code, which should lead to a more stable solutions. I also added a hacky implementation of "Efficient Second-Order Minimization" for tracking, which works nicely. A more detailed quantitative evaluation will follow. Original patch by Keir, cleaned a bit by myself. |
Commit Details:
Full Hash: 6fbc4186fd947d5dd408fccea1ba4990be738880
SVN Revision: 41817
Parent Commit: e058110
Lines Changed: +1236, -106
4 Added Paths:
/extern/libmv/libmv/tracking/esm_region_tracker.cc (+288, -0) (View)
/extern/libmv/libmv/tracking/esm_region_tracker.h (+61, -0) (View)
/extern/libmv/libmv/tracking/lmicklt_region_tracker.cc (+265, -0) (View)
/extern/libmv/libmv/tracking/lmicklt_region_tracker.h (+62, -0) (View)
/extern/libmv/libmv/tracking/esm_region_tracker.h (+61, -0) (View)
/extern/libmv/libmv/tracking/lmicklt_region_tracker.cc (+265, -0) (View)
/extern/libmv/libmv/tracking/lmicklt_region_tracker.h (+62, -0) (View)
20 Modified Paths:
/extern/libmv/CMakeLists.txt (+4, -0) (Diff)
/extern/libmv/libmv-capi.cpp (+65, -11) (Diff)
/extern/libmv/libmv-capi.h (+12, -3) (Diff)
/extern/libmv/libmv/simple_pipeline/bundle.cc (+96, -25) (Diff)
/extern/libmv/libmv/simple_pipeline/bundle.h (+41, -0) (Diff)
/extern/libmv/libmv/simple_pipeline/camera_intrinsics.cc (+22, -0) (Diff)
/extern/libmv/libmv/simple_pipeline/camera_intrinsics.h (+14, -2) (Diff)
/extern/libmv/libmv/simple_pipeline/initialize_reconstruction.cc (+2, -0) (Diff)
/extern/libmv/libmv/simple_pipeline/pipeline.cc (+0, -1) (Diff)
/extern/libmv/libmv/tracking/klt_region_tracker.cc (+53, -25) (Diff)
/extern/libmv/libmv/tracking/pyramid_region_tracker.cc (+24, -7) (Diff)
/extern/libmv/libmv/tracking/trklt_region_tracker.cc (+40, -0) (Diff)
/extern/libmv/third_party/ssba/Geometry/v3d_metricbundle.cpp (+40, -0) (Diff)
/extern/libmv/third_party/ssba/Geometry/v3d_metricbundle.h (+17, -11) (Diff)
/release/scripts/startup/bl_ui/space_clip.py (+4, -0) (Diff)
/source/blender/blenkernel/BKE_tracking.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/tracking.c (+85, -1) (Diff)
/source/blender/editors/space_clip/tracking_ops.c (+4, -20) (Diff)
/source/blender/makesdna/DNA_tracking_types.h (+11, -0) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+24, -0) (Diff)
/extern/libmv/libmv-capi.cpp (+65, -11) (Diff)
/extern/libmv/libmv-capi.h (+12, -3) (Diff)
/extern/libmv/libmv/simple_pipeline/bundle.cc (+96, -25) (Diff)
/extern/libmv/libmv/simple_pipeline/bundle.h (+41, -0) (Diff)
/extern/libmv/libmv/simple_pipeline/camera_intrinsics.cc (+22, -0) (Diff)
/extern/libmv/libmv/simple_pipeline/camera_intrinsics.h (+14, -2) (Diff)
/extern/libmv/libmv/simple_pipeline/initialize_reconstruction.cc (+2, -0) (Diff)
/extern/libmv/libmv/simple_pipeline/pipeline.cc (+0, -1) (Diff)
/extern/libmv/libmv/tracking/klt_region_tracker.cc (+53, -25) (Diff)
/extern/libmv/libmv/tracking/pyramid_region_tracker.cc (+24, -7) (Diff)
/extern/libmv/libmv/tracking/trklt_region_tracker.cc (+40, -0) (Diff)
/extern/libmv/third_party/ssba/Geometry/v3d_metricbundle.cpp (+40, -0) (Diff)
/extern/libmv/third_party/ssba/Geometry/v3d_metricbundle.h (+17, -11) (Diff)
/release/scripts/startup/bl_ui/space_clip.py (+4, -0) (Diff)
/source/blender/blenkernel/BKE_tracking.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/tracking.c (+85, -1) (Diff)
/source/blender/editors/space_clip/tracking_ops.c (+4, -20) (Diff)
/source/blender/makesdna/DNA_tracking_types.h (+11, -0) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+24, -0) (Diff)