Skip to content

Commit 4a14af9

Browse files
author
yuta.fujimoto
committed
remove convertToDegree in cpu
1 parent cbfa647 commit 4a14af9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/cuda_efficient_features/src/cuda_efficient_features.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ class EfficientFeaturesImpl : public EfficientFeatures
349349
KeyPoint kpt;
350350
kpt.pt = Point2f(points[i][0], points[i][1]);
351351
kpt.response = responses[i];
352-
kpt.angle = convertToDegree(angles[i]);
352+
kpt.angle = angles[i];
353353
kpt.octave = octaves[i];
354354
kpt.size = sizes[i];
355355
dst[i] = kpt;

modules/cuda_efficient_features/src/cuda_efficient_features.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ static __device__ inline bool IsMaxPoint(int idx1, const short2* points, const f
8888
return true;
8989
};
9090

91-
static __device__ inline float convertToDegree(float angle)
91+
static __device__ float convertToDegree(float angle)
9292
{
9393
constexpr float PI = static_cast<float>(CV_PI);
9494
if (angle < 0)

0 commit comments

Comments
 (0)