From 9cd0c9033f53fb7261616219f19b03de36706d18 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Mon, 2 Jul 2012 12:32:14 +0000 Subject: [PATCH] fixed angles of SURF detector --- modules/nonfree/src/surf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nonfree/src/surf.cpp b/modules/nonfree/src/surf.cpp index 2690b3599..d70624e31 100644 --- a/modules/nonfree/src/surf.cpp +++ b/modules/nonfree/src/surf.cpp @@ -667,7 +667,7 @@ struct SURFInvoker besty = sumy; } } - descriptor_dir = fastAtan2( besty, bestx ); + descriptor_dir = fastAtan2( -besty, bestx ); } kp.angle = descriptor_dir; if( !descriptors || !descriptors->data )