fixed descriptor calculation in SURF_GPU
This commit is contained in:
parent
deac5d972e
commit
0821c7ad17
@ -1071,7 +1071,7 @@ namespace cv { namespace gpu { namespace surf
|
|||||||
}
|
}
|
||||||
|
|
||||||
__device__ void calc_dx_dy_old(float sdx[25], float sdy[25], const KeyPoint_GPU* features, int tid)
|
__device__ void calc_dx_dy_old(float sdx[25], float sdy[25], const KeyPoint_GPU* features, int tid)
|
||||||
{
|
{
|
||||||
// get the interest point parameters (x, y, scale, strength, theta)
|
// get the interest point parameters (x, y, scale, strength, theta)
|
||||||
__shared__ float ipt[5];
|
__shared__ float ipt[5];
|
||||||
if (tid < 5)
|
if (tid < 5)
|
||||||
@ -1081,7 +1081,7 @@ namespace cv { namespace gpu { namespace surf
|
|||||||
__syncthreads();
|
__syncthreads();
|
||||||
|
|
||||||
float sin_theta, cos_theta;
|
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
|
// Compute sampling points
|
||||||
// since grids are 2D, need to compute xBlock and yBlock indices
|
// since grids are 2D, need to compute xBlock and yBlock indices
|
||||||
|
Loading…
x
Reference in New Issue
Block a user