diff --git a/extern/libmv/ChangeLog b/extern/libmv/ChangeLog index 936ec9d5d8d..ffab86d06b4 100644 --- a/extern/libmv/ChangeLog +++ b/extern/libmv/ChangeLog @@ -1,3 +1,9 @@ +commit 65a9d496f81e8b37eae39a4063957b8be9a4e6f0 +Author: Matthias Fauconneau +Date: Wed Aug 17 19:25:17 2011 +0200 + + Fix compilation on OSX. + commit d22720e618456329388d2c107422c3b371657cba Author: Matthias Fauconneau Date: Wed Aug 17 14:14:45 2011 +0200 @@ -395,15 +401,3 @@ Date: Sun Jul 17 23:01:58 2011 +0200 Add some #if (QT_VERSION < QT_VERSION_CHECK(4, 7, 0)) and #define constBits bits macros to support Qt < 4.7 which is still used on older systems. Build using Qt < 4.7 will see increased memory usage and unecessary copying. - -commit 1b91161241f90ef40391edd13c902d1901b723fb -Author: Matthias Fauconneau -Date: Sun Jul 17 18:25:47 2011 +0200 - - Fix sequence caching. - -commit e1737d71b50237c0f0d5a7f2b7463284d95a902e -Author: Matthias Fauconneau -Date: Sun Jul 17 16:35:48 2011 +0200 - - Use deprecated FFmpeg API. diff --git a/extern/libmv/libmv/simple_pipeline/detect.cc b/extern/libmv/libmv/simple_pipeline/detect.cc index 28cd01fa73f..e242d07cfed 100644 --- a/extern/libmv/libmv/simple_pipeline/detect.cc +++ b/extern/libmv/libmv/simple_pipeline/detect.cc @@ -27,6 +27,8 @@ namespace libmv { +typedef unsigned int uint; + #ifdef __SSE2__ #include static uint SAD(const ubyte* imageA, const ubyte* imageB, int strideA, int strideB) { diff --git a/extern/libmv/libmv/tracking/sad.h b/extern/libmv/libmv/tracking/sad.h index 92307c9580f..a0fe76ddcc4 100644 --- a/extern/libmv/libmv/tracking/sad.h +++ b/extern/libmv/libmv/tracking/sad.h @@ -61,6 +61,8 @@ void SamplePattern(ubyte* image, int stride, mat3 warp, ubyte* pattern); \note \a stride allow you to reference your search region instead of copying. \return Sum of absolute difference between reference and matched pattern. + A lower value indicate a better match. Divide this sum by the pattern area (16x16) + to compute the per pixel deviation (0=perfect match, 255=worst match). */ int Track(ubyte* pattern, ubyte* image, int stride, int width, int height, float* x, float* y);