}\r
\r
__device__ void calc_dx_dy_old(float sdx[25], float sdy[25], const KeyPoint_GPU* features, int tid)\r
- { \r
+ {\r
// get the interest point parameters (x, y, scale, strength, theta)\r
__shared__ float ipt[5];\r
if (tid < 5)\r
__syncthreads();\r
\r
float sin_theta, cos_theta;\r
- sincosf(ipt[SF_ANGLE], &sin_theta, &cos_theta);\r
+ sincosf(ipt[SF_ANGLE] * (CV_PI / 180.0f), &sin_theta, &cos_theta);\r
\r
// Compute sampling points\r
// since grids are 2D, need to compute xBlock and yBlock indices\r