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:
f022048
)
Re-fix bug #3319 with less side effects.
author
Roman Donchenko
<roman.donchenko@itseez.com>
Fri, 17 Jan 2014 10:13:21 +0000
(14:13 +0400)
committer
Roman Donchenko
<roman.donchenko@itseez.com>
Fri, 17 Jan 2014 10:13:21 +0000
(14:13 +0400)
modules/core/src/copy.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/copy.cpp
b/modules/core/src/copy.cpp
index
894776b
..
b87d080
100644
(file)
--- a/
modules/core/src/copy.cpp
+++ b/
modules/core/src/copy.cpp
@@
-286,6
+286,7
@@
void Mat::copyTo( OutputArray _dst, InputArray _mask ) const
if( dims <= 2 )
{
+ CV_Assert( size() == mask.size() );
Size sz = getContinuousSize(*this, dst, mask, mcn);
copymask(data, step, mask.data, mask.step, dst.data, dst.step, sz, &esz);
return;