I have
vector<cv::Point> pts
and I want to use it with FLANN I tried
cv::flann::Index tree= cv::flann::Index(cv::Mat(pts),cv::flann::KDTreeIndexParams(1));
but it doesn't work.I think I must convert pts to Mat.
How I can do this?
1 | initial version |
I have
vector<cv::Point> pts
and I want to use it with FLANN I tried
cv::flann::Index tree= cv::flann::Index(cv::Mat(pts),cv::flann::KDTreeIndexParams(1));
but it doesn't work.I think I must convert pts to Mat.
How I can do this?
2 | No.2 Revision |
I have
vector<cv::Point> pts
and I want to use it with FLANN I tried
cv::flann::Index tree= cv::flann::Index(cv::Mat(pts),cv::flann::KDTreeIndexParams(1));
but it doesn't work.I think I must convert pts to Mat.
How I can do this?
3 | retagged |
I have
vector<cv::Point> pts
and I want to use it with FLANN I tried
cv::flann::Index tree= cv::flann::Index(cv::Mat(pts),cv::flann::KDTreeIndexParams(1));
but it doesn't work.I think I must convert pts to Mat.
How I can do this?
4 | retagged |
I have
vector<cv::Point> pts
and I want to use it with FLANN I tried
cv::flann::Index tree= cv::flann::Index(cv::Mat(pts),cv::flann::KDTreeIndexParams(1));
but it doesn't work.I think I must convert pts to Mat.
How I can do this?