Camera solver: take track offset into account

This helps in cases when it's needed to track a feature which
goes out of screen for a while to prevent jump of camera.
This commit is contained in:
Sergey Sharybin 2012-06-25 16:36:12 +00:00
parent d68fc2b916
commit 1080c43d1c
1 changed files with 2 additions and 1 deletions

View File

@ -2551,7 +2551,8 @@ static struct libmv_Tracks *libmv_tracks_new(ListBase *tracksbase, int width, in
if ((marker->flag & MARKER_DISABLED) == 0) {
libmv_tracksInsert(tracks, marker->framenr, tracknr,
marker->pos[0] * width, marker->pos[1] * height);
(marker->pos[0] + track->offset[0]) * width,
(marker->pos[1] + track->offset[1]) * height);
}
}