Open Source Computer Vision Library
Go to file
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
3rdparty Adding support for WinRT(WinPhone 8/8.1 and Win Store) via CMake 3.1 2015-03-02 22:26:43 +03:00
apps Merge pull request #3811 from StevenPuttemans:fix_traincascade_getNegatives_master 2015-03-17 11:22:10 +00:00
cmake Fixed mangled install layout on unix machines 2015-03-13 14:18:37 +03:00
data Fixed mangled install layout on unix machines 2015-03-13 14:18:37 +03:00
doc Fixed mangled install layout on unix machines 2015-03-13 14:18:37 +03:00
include Split highgui module to videoio and highgui 2014-07-14 23:16:47 +04:00
modules Fix bug of uninitialized matrix in findTransformECC 2015-03-19 20:50:49 -04:00
platforms Changed encoding from ANSI to UTF8. 2015-03-13 19:28:36 +03:00
samples Merge pull request #3820 from LorenaGdL:patch-1 2015-03-13 13:20:09 +00:00
.gitattributes Made changes to OpenCVFindMatlab suggested by SpecLad 2013-09-14 13:32:15 +10:00
.gitignore Adding support for WinRT(WinPhone 8/8.1 and Win Store) via CMake 3.1 2015-03-02 22:26:43 +03:00
.tgitconfig Add tgit.icon project config 2014-02-26 17:46:52 +08:00
CMakeLists.txt Fixed mangled install layout on unix machines 2015-03-13 14:18:37 +03:00
LICENSE adding LICENSE file and a sample of its reference in ocl.hpp 2013-12-18 19:33:25 +04:00
README.md Replaced Gittip button 2014-02-15 13:10:09 +04:00

OpenCV: Open Source Computer Vision Library

Gittip

Resources

Contributing

Please read before starting work on a pull request: http://code.opencv.org/projects/opencv/wiki/How_to_contribute

Summary of guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.