Opencv findContours System.AccessViolationException

时间:2013-07-02 22:21:12

标签: c++ visual-studio-2008 opencv

我在VS2008 C ++中的Windows 7中使用表单应用程序。当我尝试使用findContours(Opencv 2.4.2)时,我得到System.AccessViolationException。 “灰色”图像一切正常,似乎无法通过findContours初始化矢量。 这是代码:

vector<vector<cv::Point> > contours;
threshold(gray, threshold_output, threshDiff, 255, THRESH_BINARY);
imshow("input_img", gray);
findContours(gray, contours, CV_RETR_TREE, CV_CHAIN_APPROX_NONE);

0 个答案:

没有答案
相关问题