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:
cd2cc61
)
Minor fix in blender mask conversion.
author
Andrey Kamaev
<no@email>
Wed, 7 Mar 2012 20:33:35 +0000
(20:33 +0000)
committer
Andrey Kamaev
<no@email>
Wed, 7 Mar 2012 20:33:35 +0000
(20:33 +0000)
modules/stitching/src/blenders.cpp
patch
|
blob
|
history
diff --git
a/modules/stitching/src/blenders.cpp
b/modules/stitching/src/blenders.cpp
index
d43899e
..
4f0a4b1
100644
(file)
--- a/
modules/stitching/src/blenders.cpp
+++ b/
modules/stitching/src/blenders.cpp
@@
-287,8
+287,8
@@
void MultiBandBlender::feed(const Mat &img, const Mat &mask, Point tl)
}
\r
else// weight_type_ == CV_16S
\r
{
\r
-
add(mask, 1, weight_map, noArray()
, CV_16S);
\r
-
weight_map.setTo(1, mask =
= 0);
\r
+
mask.convetTo(weight_map
, CV_16S);
\r
+
add(weight_map, 1, weight_map, mask !
= 0);
\r
}
\r
\r
copyMakeBorder(weight_map, weight_pyr_gauss[0], top, bottom, left, right, BORDER_CONSTANT);
\r