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

This commit is contained in:
Vadim Pisarevsky 2010-11-15 21:08:28 +00:00
parent 6cd01dc6ca
commit 6eb36a5569

View File

@ -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);