diff --git a/modules/nonfree/src/surf.cpp b/modules/nonfree/src/surf.cpp index 3ba4528c98..8c601a8b80 100644 --- a/modules/nonfree/src/surf.cpp +++ b/modules/nonfree/src/surf.cpp @@ -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 );