fixed angles of SURF detector
authorMaria Dimashova <no@email>
Mon, 2 Jul 2012 12:32:14 +0000 (12:32 +0000)
committerMaria Dimashova <no@email>
Mon, 2 Jul 2012 12:32:14 +0000 (12:32 +0000)
modules/nonfree/src/surf.cpp

index 2690b35..d70624e 100644 (file)
@@ -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 )