提交 ffd283b7 编写于 作者: A Alexander Mordvintsev

fixed SURF orientations, broken in r8892

(see also r8895, r8887 and #2043)
上级 0b4e96d8
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册