Fix bug where libmv tracking incorrectly succeeds on failure
authorKeir Mierle <mierle@gmail.com>
Mon, 28 Oct 2013 18:34:19 +0000 (18:34 +0000)
committerKeir Mierle <mierle@gmail.com>
Mon, 28 Oct 2013 18:34:19 +0000 (18:34 +0000)
commitd10abe6d4d6792bf0f9d6dbeed75acb9e46f210f
tree5cb0f38fed0e427cb5001ddf4ef5a2f435399f4b
parent869031f6be7632bda9202e631bd9349e2161c079
Fix bug where libmv tracking incorrectly succeeds on failure

Before this patch, if Ceres returned USER_SUCCESS indicating that
Ceres was only changing the tracked quad slightly between
iterations (indicating convergence), no final correlation check
was done. This leads to incorrectly returning that the tracking
was successful, when it actually failed.
extern/libmv/libmv/tracking/track_region.cc