opencv/modules/video
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
..
include/opencv2 Updated ml module interfaces and documentation 2015-02-17 11:46:14 +03:00
misc/java/test Modified java wrapping mechanism 2015-03-02 18:12:30 +03:00
perf Fix bug of uninitialized matrix in findTransformECC 2015-03-19 20:50:49 -04:00
src Fix bug of uninitialized matrix in findTransformECC 2015-03-19 20:50:49 -04:00
test Remove deprecated methods from cv::Algorithm 2015-02-16 15:28:54 +03:00
CMakeLists.txt Python support 2015-03-02 18:13:00 +03:00