Blender Git Loki

Git Commits -> Revision 039acbb

Revision 039acbb by Sergey Sharybin (master)
June 9, 2012, 11:14 (GMT)
Homography correction for track preview widget

Use homography transformation for pattern displayed in track preview widget.
Sampling of this pattern happens to resolution of preview widget itself,
which implied some bigger changes in how scopes are working:

- Instead of real pattern store search area in BKE_movieclip_update_scopes,
which is later used for sampling pattern.
- Sampling of pattern happens in ui_draw_but_TRACKPREVIEW from search area
which allows to sample it to actual resolution of preview widget.
- If size of preview widget is not changing, this sampled pattern wouldn't
be re-sampled until scopes are tagged to update.

There are some issues with pattern sampling which seems to happen SamplePlanarPatch,
changing linear sampling to nearest removes that unwanted 1px offset.

Left commented saving of sampled image in ui_draw_but_TRACKPREVIEW which should
help figuring the issue out.

Commit Details:

Full Hash: 039acbbfef112e140a47dcab05a40d732d293deb
SVN Revision: 47638
Parent Commit: f9be7fc
Lines Changed: +260, -226

13 Modified Paths:

/extern/libmv/libmv-capi.cpp (+38, -8) (Diff)
/extern/libmv/libmv-capi.h (+5, -0) (Diff)
/extern/libmv/libmv/tracking/track_region.cc (+9, -1) (Diff)
/extern/libmv/libmv/tracking/track_region.h (+2, -1) (Diff)
/source/blender/blenkernel/BKE_tracking.h (+5, -5) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+16, -10) (Diff)
/source/blender/blenkernel/intern/tracking.c (+138, -152) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/compositor/operations/COM_KeyingScreenOperation.cpp (+1, -1) (Diff)
/source/blender/editors/interface/interface_draw.c (+37, -47) (Diff)
/source/blender/editors/space_clip/space_clip.c (+4, -0) (Diff)
/source/blender/makesdna/DNA_movieclip_types.h (+3, -0) (Diff)
/source/blender/nodes/composite/nodes/node_composite_keyingscreen.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021