projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcc4d36
)
Fix epsilon calculation for sanity check in x32 build
author
vbystricky
<user@user-pc.(none)>
Thu, 24 Apr 2014 06:48:32 +0000
(10:48 +0400)
committer
vbystricky
<user@user-pc.(none)>
Thu, 24 Apr 2014 06:48:32 +0000
(10:48 +0400)
modules/imgproc/perf/perf_matchTemplate.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/perf/perf_matchTemplate.cpp
b/modules/imgproc/perf/perf_matchTemplate.cpp
index
bf5e687
..
82f74c3
100644
(file)
--- a/
modules/imgproc/perf/perf_matchTemplate.cpp
+++ b/
modules/imgproc/perf/perf_matchTemplate.cpp
@@
-77,7
+77,7
@@
PERF_TEST_P(ImgSize_TmplSize_Method, matchTemplateBig,
method == TM_SQDIFF_NORMED ||
method == TM_CCOEFF_NORMED;
double eps = isNormed ? 1e-6
- : 255
* 255 *
tmpl.total() * 1e-6;
+ : 255
.0 * 255.0 * (double)
tmpl.total() * 1e-6;
SANITY_CHECK(result, eps);
}