added assert to MatConstIterator::pos()
This commit is contained in:
parent
39335eb391
commit
ccb1e5fac0
@ -1804,11 +1804,11 @@ template<typename _Tp> inline MatIterator_<_Tp> MatIterator_<_Tp>::operator ++(i
|
|||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fixing a back compatibility problem -- to be reviewed by Vadim
|
|
||||||
template<typename _Tp> inline Point MatConstIterator_<_Tp>::pos() const
|
template<typename _Tp> inline Point MatConstIterator_<_Tp>::pos() const
|
||||||
{
|
{
|
||||||
if( !m )
|
if( !m )
|
||||||
return Point();
|
return Point();
|
||||||
|
CV_DbgAssert( m->dims <= 2 );
|
||||||
if( m->isContinuous() )
|
if( m->isContinuous() )
|
||||||
{
|
{
|
||||||
ptrdiff_t ofs = ptr - (_Tp*)m->data;
|
ptrdiff_t ofs = ptr - (_Tp*)m->data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user