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:
39335eb
)
added assert to MatConstIterator::pos()
author
Vadim Pisarevsky
<no@email>
Thu, 21 Oct 2010 15:47:49 +0000
(15:47 +0000)
committer
Vadim Pisarevsky
<no@email>
Thu, 21 Oct 2010 15:47:49 +0000
(15:47 +0000)
modules/core/include/opencv2/core/mat.hpp
patch
|
blob
|
history
diff --git
a/modules/core/include/opencv2/core/mat.hpp
b/modules/core/include/opencv2/core/mat.hpp
index
46bb41f
..
f9eef98
100644
(file)
--- a/
modules/core/include/opencv2/core/mat.hpp
+++ b/
modules/core/include/opencv2/core/mat.hpp
@@
-1804,11
+1804,11
@@
template<typename _Tp> inline MatIterator_<_Tp> MatIterator_<_Tp>::operator ++(i
return b;
}
-// Fixing a back compatibility problem -- to be reviewed by Vadim
template<typename _Tp> inline Point MatConstIterator_<_Tp>::pos() const
{
if( !m )
return Point();
+ CV_DbgAssert( m->dims <= 2 );
if( m->isContinuous() )
{
ptrdiff_t ofs = ptr - (_Tp*)m->data;