Commit 0821c7ad authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed descriptor calculation in SURF_GPU

parent deac5d97
......@@ -1081,7 +1081,7 @@ namespace cv { namespace gpu { namespace surf
__syncthreads();
float sin_theta, cos_theta;
sincosf(ipt[SF_ANGLE], &sin_theta, &cos_theta);
sincosf(ipt[SF_ANGLE] * (CV_PI / 180.0f), &sin_theta, &cos_theta);
// Compute sampling points
// since grids are 2D, need to compute xBlock and yBlock indices
......
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