From 3b0243c51dfb6a0487db9acbb02c227396e6ecde Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Tue, 18 May 2010 12:21:45 +0000 Subject: [PATCH] fixed wrapper of sift descriptor --- modules/features2d/src/sift.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/features2d/src/sift.cpp b/modules/features2d/src/sift.cpp index c5c09e9..b66fc5a 100644 --- a/modules/features2d/src/sift.cpp +++ b/modules/features2d/src/sift.cpp @@ -2058,7 +2058,7 @@ void SIFT::operator()(const Mat& img, const Mat& mask, assert(0); } - keypoints.push_back( vlKeypointToOcv(*iter, angleVal) ); + keypoints.push_back( vlKeypointToOcv(*iter, angleVal*180.0/CV_PI ) ); } } } @@ -2093,6 +2093,6 @@ void SIFT::operator()(const Mat& img, const Mat& mask, { VL::Sift::Keypoint vlkpt; ocvKeypointToVl( *iter, vlsift, vlkpt ); - vlsift.computeKeypointDescriptor((VL::float_t*)descriptors.ptr(pi), vlkpt, iter->angle); + vlsift.computeKeypointDescriptor((VL::float_t*)descriptors.ptr(pi), vlkpt, iter->angle*CV_PI/180.0); } } -- 2.7.4