提交 6eb36a55 编写于 作者: V Vadim Pisarevsky

keep the SURFPoint.laplacian as KeyPoint.class_id (ticket #341)

上级 6cd01dc6
......@@ -899,7 +899,8 @@ void SURF::operator()(const Mat& img, const Mat& mask,
{
const CvSURFPoint& kpt = *it;
keypoints[i] = KeyPoint(kpt.pt, (float)kpt.size, kpt.dir,
kpt.hessian, getPointOctave(kpt, *this));
kpt.hessian, getPointOctave(kpt, *this),
kpt.laplacian);
}
}
descriptors.resize(d ? d->total*d->elem_size/sizeof(float) : 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册