hololens东方烁 2017-12-25 14:50 采纳率: 100%
浏览 3099
已结题

opencv中ORB特征问题点位置为小数

opencv中ORB特征,
Ptr orb = ORB::create(10000);
orb->setFastThreshold(0);
orb->detectAndCompute(img1, Mat(), kp1, d1);
orb->detectAndCompute(img2, Mat(), kp2, d2);
为什么提取特征后访问输出的
for each (auto t in kp1)
{
cout << t.pt.x << " " << t.pt.y << endl;
}
处出现浮点数.5,不应该多是整数吗?

  • 写回答

2条回答 默认 最新

  • threenewbee 2017-12-25 16:06
    关注

    pt是一个点,它的x y成员都是整数。

    评论

报告相同问题?