fixed surf for upright case
authormarina.kolpakova <marina.kolpakova@itseez.com>
Wed, 25 Jul 2012 08:19:08 +0000 (12:19 +0400)
committermarina.kolpakova <marina.kolpakova@itseez.com>
Wed, 25 Jul 2012 08:19:08 +0000 (12:19 +0400)
modules/nonfree/src/surf.cpp

index 3ba4528..8c601a8 100644 (file)
@@ -615,7 +615,7 @@ struct SURFInvoker
                 continue;
             }
 
-            float descriptor_dir = 90.f;
+            float descriptor_dir = 360.f - 90.f;
             if (upright == 0)
             {
                 resizeHaarPattern( dx_s, dx_t, NX, 4, grad_wav_size, sum->cols );