已经指定像vector<Descriptor> m_keyDescs
如何将矢量<...>转换为cv :: Mat?
描述:
Descriptor(float x, float y, vector<double> const& f)
{
xi = x;
yi = y;
fv = f;
}
推,如:
m_keyDescs.push_back(Descriptor(descxi, descyi, fv));
如何这个向量转换为CV ::垫?
我已经试过
descriptors_scene = cv::Mat(m_keyDescs).reshape(1);
项目调试没有错误,但运行时出现错误Qt Creator中在我的Mac:
测试意外退出 点击重新再次打开该应用程序。