1
嗨,我尝试使用fitLine,但它总是崩溃。 我已经尝试修改输入数据(cv::Mat
,std::vector<cv::Pointd>
)和输出数据(cv::Vect4d
,std::vector<cv::Pointd>(2)
,std::vector<double>(4)
)格式。opencv fitLine总是崩溃
这里是我的代码:
std::vector<cv::Point2d> points;
// [...] // push_back some (26) points
std::vector<double> line(4,0);
cv::fitLine(points,line,CV_DIST_L2,0,0.01,0.01);
现在它崩溃。 Iam使用winxp VS2010与opencv 2.41构建 我没有调用堆栈,崩溃似乎发生在kernel32.dll中xstring
我的失败在哪里?
PS: 我在opencv Q &论坛上发布了一个问题,但在查看问题历史记录后,iam对于快速解决方案并不是很有信心。