Merge pull request #3071 from mshabunin:stitch-fix
This commit is contained in:
@@ -1122,7 +1122,7 @@ CV_INLINE CvSetElem* cvSetNew( CvSet* set_header )
|
||||
set_header->active_count++;
|
||||
}
|
||||
else
|
||||
cvSetAdd( set_header, NULL, (CvSetElem**)&elem );
|
||||
cvSetAdd( set_header, NULL, &elem );
|
||||
return elem;
|
||||
}
|
||||
|
||||
|
@@ -643,7 +643,8 @@ inline void Mat::release()
|
||||
deallocate();
|
||||
u = NULL;
|
||||
datastart = dataend = datalimit = data = 0;
|
||||
size.p[0] = 0;
|
||||
for(int i = 0; i < dims; i++)
|
||||
size.p[i] = 0;
|
||||
}
|
||||
|
||||
inline
|
||||
@@ -2753,7 +2754,7 @@ SparseMatConstIterator_<_Tp>& SparseMatConstIterator_<_Tp>::operator ++()
|
||||
template<typename _Tp> inline
|
||||
SparseMatConstIterator_<_Tp> SparseMatConstIterator_<_Tp>::operator ++(int)
|
||||
{
|
||||
SparseMatConstIterator it = *this;
|
||||
SparseMatConstIterator_<_Tp> it = *this;
|
||||
SparseMatConstIterator::operator ++();
|
||||
return it;
|
||||
}
|
||||
@@ -2805,7 +2806,7 @@ SparseMatIterator_<_Tp>& SparseMatIterator_<_Tp>::operator ++()
|
||||
template<typename _Tp> inline
|
||||
SparseMatIterator_<_Tp> SparseMatIterator_<_Tp>::operator ++(int)
|
||||
{
|
||||
SparseMatIterator it = *this;
|
||||
SparseMatIterator_<_Tp> it = *this;
|
||||
SparseMatConstIterator::operator ++();
|
||||
return it;
|
||||
}
|
||||
|
@@ -548,7 +548,7 @@ CV_INLINE void cvmSet( CvMat* mat, int row, int col, double value )
|
||||
else
|
||||
{
|
||||
assert( type == CV_64FC1 );
|
||||
((double*)(void*)(mat->data.ptr + (size_t)mat->step*row))[col] = (double)value;
|
||||
((double*)(void*)(mat->data.ptr + (size_t)mat->step*row))[col] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user