1

我尝试了以下方法:

typedef std::tr1::unordered_map <Point2f,int> hash;
hash ht;
Point2f points;
points.x = ......
points.y = ......
.
.
.
ht.insert(hash::value_type(points,frame_num));

但我收到以下错误:

error: undefined reference to `std::tr1::hash<cv::Point_<float> >::operator()(cv::Point_<float>) const'

这样做的全部原因是存储质量中心(点)发生的位置(坐标作为哈希表的键)和时间(或帧号作为值)!任何帮助或建议表示赞赏。

4

0 回答 0