From 49207ce1a0502cc3180b0e0ed1ce36ab22993811 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 7 Mar 2012 20:33:35 +0000 Subject: [PATCH] Minor fix in blender mask conversion. --- modules/stitching/src/blenders.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/stitching/src/blenders.cpp b/modules/stitching/src/blenders.cpp index d43899e..4f0a4b1 100644 --- 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) } else// weight_type_ == CV_16S { - add(mask, 1, weight_map, noArray(), CV_16S); - weight_map.setTo(1, mask == 0); + mask.convetTo(weight_map, CV_16S); + add(weight_map, 1, weight_map, mask != 0); } copyMakeBorder(weight_map, weight_pyr_gauss[0], top, bottom, left, right, BORDER_CONSTANT); -- 2.7.4