From 9fc872b70bf326335a2903dbf96ad85e800fea95 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 16 Apr 2015 22:52:05 +0300 Subject: [PATCH] [move sift.cpp] fixed contrib code to match the HAL original commit: https://github.com/opencv/opencv_contrib/commit/cdddcc8237627f667d66daffb3fcb3af39a3e673 --- modules/features2d/src/sift.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/features2d/src/sift.cpp b/modules/features2d/src/sift.cpp index 850bd4f3f5..53f9ccba16 100644 --- a/modules/features2d/src/sift.cpp +++ b/modules/features2d/src/sift.cpp @@ -302,9 +302,9 @@ static float calcOrientationHist( const Mat& img, Point pt, int radius, len = k; // compute gradient values, orientations and the weights over the pixel neighborhood - exp(W, W, len); - fastAtan2(Y, X, Ori, len, true); - magnitude(X, Y, Mag, len); + hal::exp(W, W, len); + hal::fastAtan2(Y, X, Ori, len, true); + hal::magnitude(X, Y, Mag, len); for( k = 0; k < len; k++ ) { @@ -585,9 +585,9 @@ static void calcSIFTDescriptor( const Mat& img, Point2f ptf, float ori, float sc } len = k; - fastAtan2(Y, X, Ori, len, true); - magnitude(X, Y, Mag, len); - exp(W, W, len); + hal::fastAtan2(Y, X, Ori, len, true); + hal::magnitude(X, Y, Mag, len); + hal::exp(W, W, len); for( k = 0; k < len; k++ ) {