mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 12:10:49 +08:00
Open Source Computer Vision Library
ff48387a8a
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). |
||
---|---|---|
3rdparty | ||
apps | ||
cmake | ||
data | ||
doc | ||
include | ||
modules | ||
platforms | ||
samples | ||
.gitattributes | ||
.gitignore | ||
.tgitconfig | ||
CMakeLists.txt | ||
LICENSE | ||
README.md |
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: http://opencv.org
- Docs: http://docs.opencv.org
- Q&A forum: http://answers.opencv.org
- Issue tracking: http://code.opencv.org
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.