Commit 29f86df5 authored by Maria Dimashova's avatar Maria Dimashova

merged with r9002 (fix for SURF descriptor)

parent 9f4c5afb
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment