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

pull/13383/head
Vadim Pisarevsky 15 years ago
parent 6cd01dc6ca
commit 6eb36a5569
  1. 3
      modules/features2d/src/surf.cpp

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

Loading…
Cancel
Save