Blender Git Loki

Git Commits -> Revision d4fec9f

Revision d4fec9f by Keir Mierle (master)
November 9, 2011, 10:07 (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.

Commit Details:

Full Hash: d4fec9f19f2b726a0cf6991c1572ef3bc4de865f
SVN Revision: 41693
Parent Commit: af5526e
Lines Changed: +1168, -85

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)

19 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 (+5, -0) (Diff)
/source/blender/blenkernel/intern/tracking.c (+20, -0) (Diff)
/source/blender/editors/space_clip/tracking_ops.c (+7, -0) (Diff)
/source/blender/makesdna/DNA_tracking_types.h (+10, -0) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+20, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021