提交 9d7e51eb 编写于 作者: V Vladislav Vinogradov

fixed SparseMat Iterator compilation error (bug #2921)

上级 656594ad
...@@ -3767,6 +3767,7 @@ public: ...@@ -3767,6 +3767,7 @@ public:
SparseMatConstIterator_(); SparseMatConstIterator_();
//! the full constructor setting the iterator to the first sparse matrix element //! the full constructor setting the iterator to the first sparse matrix element
SparseMatConstIterator_(const SparseMat_<_Tp>* _m); SparseMatConstIterator_(const SparseMat_<_Tp>* _m);
SparseMatConstIterator_(const SparseMat* _m);
//! the copy constructor //! the copy constructor
SparseMatConstIterator_(const SparseMatConstIterator_& it); SparseMatConstIterator_(const SparseMatConstIterator_& it);
...@@ -3796,6 +3797,7 @@ public: ...@@ -3796,6 +3797,7 @@ public:
SparseMatIterator_(); SparseMatIterator_();
//! the full constructor setting the iterator to the first sparse matrix element //! the full constructor setting the iterator to the first sparse matrix element
SparseMatIterator_(SparseMat_<_Tp>* _m); SparseMatIterator_(SparseMat_<_Tp>* _m);
SparseMatIterator_(SparseMat* _m);
//! the copy constructor //! the copy constructor
SparseMatIterator_(const SparseMatIterator_& it); SparseMatIterator_(const SparseMatIterator_& it);
......
...@@ -2530,6 +2530,13 @@ SparseMatConstIterator_<_Tp>::SparseMatConstIterator_(const SparseMat_<_Tp>* _m) ...@@ -2530,6 +2530,13 @@ SparseMatConstIterator_<_Tp>::SparseMatConstIterator_(const SparseMat_<_Tp>* _m)
: SparseMatConstIterator(_m) : SparseMatConstIterator(_m)
{} {}
template<typename _Tp> inline
SparseMatConstIterator_<_Tp>::SparseMatConstIterator_(const SparseMat* _m)
: SparseMatConstIterator(_m)
{
CV_Assert( _m->type() == DataType<_Tp>::type );
}
template<typename _Tp> inline template<typename _Tp> inline
SparseMatConstIterator_<_Tp>::SparseMatConstIterator_(const SparseMatConstIterator_<_Tp>& it) SparseMatConstIterator_<_Tp>::SparseMatConstIterator_(const SparseMatConstIterator_<_Tp>& it)
: SparseMatConstIterator(it) : SparseMatConstIterator(it)
...@@ -2569,6 +2576,11 @@ SparseMatIterator_<_Tp>::SparseMatIterator_(SparseMat_<_Tp>* _m) ...@@ -2569,6 +2576,11 @@ SparseMatIterator_<_Tp>::SparseMatIterator_(SparseMat_<_Tp>* _m)
: SparseMatConstIterator_<_Tp>(_m) : SparseMatConstIterator_<_Tp>(_m)
{} {}
template<typename _Tp> inline
SparseMatIterator_<_Tp>::SparseMatIterator_(SparseMat* _m)
: SparseMatConstIterator_<_Tp>(_m)
{}
template<typename _Tp> inline template<typename _Tp> inline
SparseMatIterator_<_Tp>::SparseMatIterator_(const SparseMatIterator_<_Tp>& it) SparseMatIterator_<_Tp>::SparseMatIterator_(const SparseMatIterator_<_Tp>& it)
: SparseMatConstIterator_<_Tp>(it) : SparseMatConstIterator_<_Tp>(it)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册