opencv/modules/video/src
Owen Healy ff48387a8a Fix bug of uninitialized matrix in findTransformECC
The matrix templateZM needs to be initialized because otherwise
uninitialized values leak into the correlation in:

    const double correlation = templateZM.dot(imageWarped)

In the worst case this will lead the correlation to be NaN ruining the
whole routine. The subtraction does not initialize templateZM due to the
mask.

Unfortunately, the uninitialized values (by altering the correlation)
have the side effect of dragging out the computation a little longer
giving a slightly better error bound. This means that fixing this bug
breaks perf_ecc where

    SANITY_CHECK(warpMat, 1e-3);

is just a little too tight and happens to work due to the uninitialized
values. Since this is a performance not a accuracy test I think it is OK
to just relax the error bound a little bit (the tight error bound being
after all the result of a bug).
2015-03-19 20:50:49 -04:00
..
opencl Optimize OpenCL version function BackgroundSubstractionMOG2 2014-09-23 10:33:30 +04:00
bgfg_gaussmix2.cpp Remove deprecated methods from cv::Algorithm 2015-02-16 15:28:54 +03:00
bgfg_KNN.cpp Fixed warnings for iOS 2015-03-06 16:16:57 +03:00
camshift.cpp refactored cv::CamShift and cv::meanShift 2013-12-21 14:40:59 +04:00
compat_video.cpp moved part of video to contrib/{outflow, bgsegm}; moved matlab to contrib 2014-08-10 23:24:16 +04:00
ecc.cpp Fix bug of uninitialized matrix in findTransformECC 2015-03-19 20:50:49 -04:00
kalman.cpp Several type of formal refactoring: 2014-08-13 15:21:35 +04:00
lkpyramid.cpp move tegra namespace out of cv to prevent conflicts 2015-02-27 12:52:11 +03:00
lkpyramid.hpp Normalized file endings. 2013-08-21 18:59:25 +04:00
optflowgf.cpp Implementation detector and selector for IPP and OpenCL; 2014-10-15 14:24:41 +04:00
precomp.hpp Master Version: Added NEON Optimizations for LK Optical Flow. 2014-03-04 14:47:12 -05:00
tvl1flow.cpp Remove deprecated methods from cv::Algorithm 2015-02-16 15:28:54 +03:00