1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

merged with r9002 (fix for SURF descriptor)

This commit is contained in:
Maria Dimashova
2012-07-17 14:24:54 +00:00
parent 9f4c5afbbb
commit 29f86df585
+2 -2
View File
@@ -681,8 +681,8 @@ struct SURFInvoker
if( !upright )
{
descriptor_dir *= (float)(CV_PI/180);
float sin_dir = std::sin(descriptor_dir);
float cos_dir = std::cos(descriptor_dir);
float sin_dir = -std::sin(descriptor_dir);
float cos_dir = std::cos(descriptor_dir);
/* Subpixel interpolation version (slower). Subpixel not required since
the pixels will all get averaged when we scale down to 20 pixels */