Skip to content

Commit eae1ebf

Browse files
committed
fix issue 8411.
1 parent c1007c7 commit eae1ebf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

modules/core/include/opencv2/core/mat.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ class CV_EXPORTS _InputArray
177177
template<typename _Tp> _InputArray(const std::vector<_Tp>& vec);
178178
_InputArray(const std::vector<bool>& vec);
179179
template<typename _Tp> _InputArray(const std::vector<std::vector<_Tp> >& vec);
180+
_InputArray(const std::vector<std::vector<bool> >&);
180181
template<typename _Tp> _InputArray(const std::vector<Mat_<_Tp> >& vec);
181182
template<typename _Tp> _InputArray(const _Tp* vec, int n);
182183
template<typename _Tp, int m, int n> _InputArray(const Matx<_Tp, m, n>& matx);

modules/core/include/opencv2/core/mat.inl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ template<typename _Tp> inline
8585
_InputArray::_InputArray(const std::vector<std::vector<_Tp> >& vec)
8686
{ init(FIXED_TYPE + STD_VECTOR_VECTOR + DataType<_Tp>::type + ACCESS_READ, &vec); }
8787

88+
inline
89+
_InputArray::_InputArray(const std::vector<std::vector<bool> >&)
90+
{ CV_Error(Error::StsUnsupportedFormat, "std::vector<std::vector<bool> > is not supported!\n"); }
91+
8892
template<typename _Tp> inline
8993
_InputArray::_InputArray(const std::vector<Mat_<_Tp> >& vec)
9094
{ init(FIXED_TYPE + STD_VECTOR_MAT + DataType<_Tp>::type + ACCESS_READ, &vec); }

0 commit comments

Comments
 (0)