Blender Git Commit Log

Git Commits -> Revision 25bb441

Revision 25bb441 by Sergey Sharybin (master)
June 10, 2012, 15:28 (GMT)
Planar tracking support for motion tracking
===========================================

Major list of changes done in tomato branch:

- Add a planar tracking implementation to libmv
This adds a new planar tracking implementation to libmv. The
tracker is based on Ceres[1], the new nonlinear minimizer that
myself and Sameer released from Google as open source. Since
the motion model is more involved, the interface is
different than the RegionTracker interface used previously
in Blender.

The start of a C API in libmv-capi.{cpp,h} is also included.

- Migrate from pat_{min,max} for markers to 4 corners representation

Convert markers in the movie clip editor / 2D tracker from using
pat_min and pat_max notation to using the a more general, 4-corner
representation.

There is still considerable porting work to do; in particular
sliding from preview widget does not work correct for rotated
markers.

All other areas should be ported to new representation:

* Added support of sliding individual corners. LMB slide + Ctrl
would scale the whole pattern
* S would scale the whole marker, S-S would scale pattern only
* Added support of marker's rotation which is currently rotates
only patterns around their centers or all markers around median,

Rotation or other non-translation/scaling transformation of search
area doesn't make sense.

* Track Preview widget would display transformed pattern which
libmv actually operates with.

- "Efficient Second-order Minimization" for the planar tracker

This implements the "Efficient Second-order Minimization"
scheme, as supported by the existing translation tracker.
This increases the amount of per-iteration work, but
decreases the number of iterations required to converge and
also increases the size of the basin of attraction for the
optimization.

- Remove the use of the legacy RegionTracker API from Blender,
and replaces it with the new TrackRegion API. This also
adds several features to the planar tracker in libmv:

* Do a brute-force initialization of tracking similar to "Hybrid"
mode in the stable release, but using all floats. This is slower
but more accurate. It is still necessary to evaluate if the
performance loss is worth it. In particular, this change is
necessary to support high bit depth imagery.

* Add support for masks over the search window. This is a step
towards supporting user-defined tracker masks. The tracker masks
will make it easy for users to make a mask for e.g. a ball.

Not exposed into interface yet/

* Add Pearson product moment correlation coefficient checking (aka
"Correlation" in the UI. This causes tracking failure if the
tracked patch is not linearly related to the template.

* Add support for warping a few points in addition to the supplied
points. This is useful because the tracking code deliberately
does not expose the underlying warp representation. Instead,
warps are specified in an aparametric way via the correspondences.

- Replace the old style tracker configuration panel with the
new planar tracking panel. From a users perspective, this means:

* The old "tracking algorithm" picker is gone. There is only 1
algorithm now. We may revisit this later, but I would much
prefer to have only 1 algorithm. So far no optimization work
has been done so the speed is not there yet.

* There is now a dropdown to select the motion model. Choices:

* Translation
* Translation, rotation
* Translation, scale
* Translation, rotation, scale
* Affine
* Perspective

* The old "Hybrid" mode is gone; instead there is a toggle to
enable or disable translation-only tracker initialization. This
is the equivalent of the hyrbid mode before, but rewritten to work
with the new planar tracking modes.

* The pyramid levels setting is gone. At a future date, the planar
tracker will decide to use pyramids or not automatically. The
pyramid setting was ultimately a mistake; with the brute force
initialization it is unnecessary.

- Add light-normalized tracking

Added the ability to normalize patterns by their average value while
tracking, to make them invariant to global illumination changes.

Additional details could be found at wiki page [2]

[1] http://code.google.com/p/ceres-solver
[2] http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Motion_Tracker

Commit Details:

Full Hash: 25bb441301a52b10ce12efa2adb99f7ce5abddb6
SVN Revision: 47686
Parent Commit: 59ef51a
Lines Changed: +3530, -813

5 Added Paths:

/extern/libmv/libmv/multiview/homography.cc (+267, -0) (View)
/extern/libmv/libmv/multiview/homography.h (+84, -0) (View)
/extern/libmv/libmv/multiview/homography_parameterization.h (+91, -0) (View)
/extern/libmv/libmv/tracking/track_region.cc (+1391, -0) (View)
/extern/libmv/libmv/tracking/track_region.h (+146, -0) (View)

23 Modified Paths:

/extern/libmv/CMakeLists.txt (+2, -0) (Diff)
/extern/libmv/libmv-capi.cpp (+135, -14) (Diff)
/extern/libmv/libmv-capi.h (+26, -0) (Diff)
/extern/libmv/libmv/image/sample.h (+45, -19) (Diff)
/extern/libmv/libmv/tracking/esm_region_tracker.cc (+39, -0) (Diff)
/release/scripts/startup/bl_ui/space_clip.py (+6, -8) (Diff)
/source/blender/blenkernel/BKE_tracking.h (+9, -6) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+26, -12) (Diff)
/source/blender/blenkernel/intern/tracking.c (+486, -244) (Diff)
/source/blender/blenloader/intern/readfile.c (+46, -8) (Diff)
/source/blender/editors/interface/interface_draw.c (+38, -47) (Diff)
/source/blender/editors/space_clip/clip_buttons.c (+48, -43) (Diff)
/source/blender/editors/space_clip/clip_draw.c (+117, -143) (Diff)
/source/blender/editors/space_clip/space_clip.c (+4, -0) (Diff)
/source/blender/editors/space_clip/tracking_ops.c (+243, -58) (Diff)
/source/blender/editors/transform/transform.c (+15, -0) (Diff)
/source/blender/editors/transform/transform_conversions.c (+81, -50) (Diff)
/source/blender/editors/transform/transform_generics.c (+11, -4) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_movieclip_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_tracking_types.h (+60, -23) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+108, -134) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021