0

我有点头疼,试图理解为什么简单地向 OpenCV 的 Point_ 类添加一个成员变量会使我的程序崩溃。这是 OpenCV 附带的用于存储 2D 点的类之一。如果编辑 opencv2/core/core.hpp 并向类 Point_ 添加成员变量,则程序崩溃。将我的成员变量注释视为注释:

template<typename _Tp> class CV_EXPORTS Point_
{
public:
typedef _Tp value_type;

// various constructors
Point_();
Point_(_Tp _x, _Tp _y);
Point_(const Point_& pt);
Point_(const CvPoint& pt);
Point_(const CvPoint2D32f& pt);
Point_(const Size_<_Tp>& sz);
Point_(const Vec<_Tp, 2>& v);

Point_& operator = (const Point_& pt);
//! conversion to another data type
template<typename _Tp2> operator Point_<_Tp2>() const;

//! conversion to the old-style C structures
operator CvPoint() const;
operator CvPoint2D32f() const;
operator Vec<_Tp, 2>() const;

//! dot product
_Tp dot(const Point_& pt) const;
//! dot product computed in double-precision arithmetics
double ddot(const Point_& pt) const;
//! checks whether the point is inside the specified rectangle
bool inside(const Rect_<_Tp>& r) const;

_Tp x, y; //< the point coordinates
//OCR Additions
bool iAddedThisButItCrashesRemovingMeMakesItWork;
};

它不仅仅是添加一个布尔值。它可以是像“int i”这样的成员变量。

BoundingBox(vector<vector<cv::Point> > &contourPoints, vector<Vec4i> &hierarchy, Mat &imgSrc)
{
    currentContour=0;
    nextContour=0;
    maxContour=0;
    //Is is related to the shallow copy???
    this->contourPoints= contourPoints;  //<----- starts crashing here
    this->hierarchy=hierarchy;
    this->imgSrc = imgSrc;
}

所以我得到的运行时异常是:

“调试断言失败!” “表达式:向量迭代器不可解引用”

我是WTF。如果有人有任何想法,请告诉我。

附加信息(堆栈跟踪):

>   msvcp100d.dll!std::_Debug_message(const wchar_t * message=0x00fac0b0, const wchar_t * file=0x00fabb60, unsigned int line=70)  Line 15   C++
OCR.exe!std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > >::operator*()  Line 70 + 0x14 bytes    C++
OCR.exe!std::_Uninit_copy<std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > >,cv::Point_<int> *,std::allocator<cv::Point_<int> > >(std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > > _First={x=-1414812757 y=-17891602 iAddedThisButItCrashesRemovingMeMakesItWork=false }, std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > > _Last={x=-33686019 y=-1414812757 iAddedThisButItCrashesRemovingMeMakesItWork=true }, cv::Point_<int> * _Dest=0x00b51520, std::allocator<cv::Point_<int> > & _Al={...}, std::_Nonscalar_ptr_iterator_tag __formal={...})  Line 376 + 0x8 bytes   C++
OCR.exe!std::_Uninitialized_copy<std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > >,cv::Point_<int> *,std::allocator<cv::Point_<int> > >(std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > > _First={x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true }, std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > > _Last={x=-33686019 y=-1414812757 iAddedThisButItCrashesRemovingMeMakesItWork=true }, cv::Point_<int> * _Dest=0x00b51070, std::allocator<cv::Point_<int> > & _Al={...})  Line 414 + 0x73 bytes    C++
OCR.exe!std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >::_Ucopy<std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > > >(std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > > _First={x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true }, std::_Vector_const_iterator<std::_Vector_val<cv::Point_<int>,std::allocator<cv::Point_<int> > > > _Last={x=-33686019 y=-1414812757 iAddedThisButItCrashesRemovingMeMakesItWork=true }, cv::Point_<int> * _Ptr=0x00b51070)  Line 1318 + 0x58 bytes   C++
OCR.exe!std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >(const std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > & _Right=[99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...))  Line 539 + 0x57 bytes  C++
OCR.exe!std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > >::construct<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > &>(std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Ptr=0x00b93b40 [0](), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > & _Val=[99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...))  Line 208 + 0x3c bytes   C++
OCR.exe!std::_Cons_val<std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > >,std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >,std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > &>(std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > & _Alval={...}, std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Pdest=0x00b93b40 [0](), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > & _Src=[99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...))  Line 281   C++
OCR.exe!std::_Uninit_copy<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > *,std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > *,std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > >(std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _First=0x00b4d570 [99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Last=0x00b4d7dc [0](), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Dest=0x00b93b40 [0](), std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > & _Al={...}, std::_Nonscalar_ptr_iterator_tag __formal={...})  Line 376 + 0x11 bytes C++
OCR.exe!std::_Uninitialized_copy<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > *,std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > *,std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > >(std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _First=0x00b4d570 [99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Last=0x00b4d7dc [0](), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Dest=0x00b93b40 [0](), std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > & _Al={...})  Line 414 + 0x33 bytes   C++
OCR.exe!std::vector<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >,std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > >::_Ucopy<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > *>(std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _First=0x00b4d570 [99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Last=0x00b4d7dc [0](), std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > * _Ptr=0x00b93b40 [0]())  Line 1318 + 0x18 bytes  C++
OCR.exe!std::vector<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >,std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > >::operator=(const std::vector<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >,std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > > & _Right=[31]([99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...),...,...))  Line 739 + 0x1d bytes    C++
OCR.exe!BoundingBox::BoundingBox(std::vector<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >,std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > > & contourPoints=[31]([99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...),...,...), std::vector<cv::Vec<int,4>,std::allocator<cv::Vec<int,4> > > & hierarchy=[31]({...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...}), cv::Mat & imgSrc={...})  Line 29  C++
OCR.exe!OCRBase::processImage(std::vector<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > >,std::allocator<std::vector<cv::Point_<int>,std::allocator<cv::Point_<int> > > > > & contourPoints=[31]([99]({x=121 y=87 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=119 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=118 y=89 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=116 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=92 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=93 y=113 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=113 y=91 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=90 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=114 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=111 y=88 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=88 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=90 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=91 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=93 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=94 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=96 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=97 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=99 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=100 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=102 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=103 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=105 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=106 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=108 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=109 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=111 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=112 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=114 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=115 y=110 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=110 y=117 iAddedThisButItCrashesRemovingMeMakesItWork=true },{x=117 y=112 iAddedThisButItCrashesRemovingMeMakesItWork=true },...,...),...,...), std::vector<cv::Vec<int,4>,std::allocator<cv::Vec<int,4> > > & hierarchy=[31]({...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...},{...}), cv::Mat & imgSrc={...})  Line 10 + 0x3a bytes    C++
OCR.exe!main(int argc=2, char * * argv=0x00b4d228)  Line 35 C++
OCR.exe!__tmainCRTStartup()  Line 555 + 0x19 bytes  C
OCR.exe!mainCRTStartup()  Line 371  C

谢谢!

4

1 回答 1

0

要解决此问题,请改用此数据类型

Vector<cv::mat>
于 2012-08-26T03:41:00.523 回答