From 4187f116102c586fcb1f9a8eb75835cb8ea3de42 Mon Sep 17 00:00:00 2001 From: Victor Erukhimov Date: Fri, 9 Jul 2010 09:08:08 +0000 Subject: [PATCH] Fixing a win compilation problem --- modules/features2d/src/sift.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/features2d/src/sift.cpp b/modules/features2d/src/sift.cpp index 954a2049ef..0e82b8761d 100644 --- a/modules/features2d/src/sift.cpp +++ b/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 )