Fixing a win compilation problem

This commit is contained in:
Victor Erukhimov 2010-07-09 09:08:08 +00:00
parent 1058bc7f1f
commit 4187f11610

View File

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