projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa36898
)
added test for correct handling of uniforma areas in the MergeMertens
author
Volodymyr Kysenko
<vksnk@motorola.com>
Thu, 9 Jan 2014 22:10:00 +0000
(14:10 -0800)
committer
Volodymyr Kysenko
<vksnk@motorola.com>
Thu, 9 Jan 2014 22:10:00 +0000
(14:10 -0800)
modules/photo/test/test_hdr.cpp
patch
|
blob
|
history
diff --git
a/modules/photo/test/test_hdr.cpp
b/modules/photo/test/test_hdr.cpp
index
82ae25f
..
27773fb
100644
(file)
--- a/
modules/photo/test/test_hdr.cpp
+++ b/
modules/photo/test/test_hdr.cpp
@@
-166,6
+166,16
@@
TEST(Photo_MergeMertens, regression)
merge->process(images, result);
result.convertTo(result, CV_8UC3, 255);
checkEqual(expected, result, 3, "Mertens");
+
+ Mat uniform(100, 100, CV_8UC3);
+ uniform = Scalar(0, 255, 0);
+
+ images.clear();
+ images.push_back(uniform);
+
+ merge->process(images, result);
+ result.convertTo(result, CV_8UC3, 255);
+ checkEqual(uniform, result, 1e-2f, "Mertens");
}
TEST(Photo_MergeDebevec, regression)