mirror of
https://github.com/opencv/opencv.git
synced 2025-07-26 07:07:37 +08:00
fixed descriptor calculation in SURF_GPU
This commit is contained in:
parent
deac5d972e
commit
0821c7ad17
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user