Fixing a win compilation problem

pull/13383/head
Victor Erukhimov 15 years ago
parent 1058bc7f1f
commit 4187f11610
  1. 2
      modules/features2d/src/sift.cpp

@ -2088,7 +2088,7 @@ void SIFT::operator()(const Mat& img, const Mat& mask,
commParams.firstOctave, -1, commParams.nOctaveLayers+1);
vlsift.detectKeypoints(detectorParams.threshold, detectorParams.edgeThreshold);
int d = std::abs(vlsift.keypointsBegin()-vlsift.keypointsEnd());
int d = std::abs(int(vlsift.keypointsBegin()-vlsift.keypointsEnd()));
keypoints.reserve(d);
for( VL::Sift::KeypointsConstIter iter = vlsift.keypointsBegin(); iter != vlsift.keypointsEnd(); ++iter )

Loading…
Cancel
Save