Skip to content

Commit f5190a6

Browse files
author
yuta.fujimoto
committed
remove unnecessary function
1 parent 4a14af9 commit f5190a6

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

modules/cuda_efficient_features/src/cuda_efficient_features.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,6 @@ static void createMask(GpuMat& mask, Size imgSize, int border, Stream& stream)
181181
mask(ROI).setTo(Scalar::all(255), stream);
182182
}
183183

184-
static inline float convertToDegree(float angle)
185-
{
186-
constexpr float PI = static_cast<float>(CV_PI);
187-
if (angle < 0)
188-
angle += 2.f * PI;
189-
return (180.f / PI) * angle;
190-
}
191-
192184
class EfficientFeaturesImpl : public EfficientFeatures
193185
{
194186
public:

modules/cuda_efficient_features/src/cuda_efficient_features.cu

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ static __device__ inline int distanceSq(short2 pt1, short2 pt2)
5151
return dx * dx + dy * dy;
5252
}
5353

54+
static __device__ inline float convertToDegree(float angle)
55+
{
56+
constexpr float PI = static_cast<float>(CV_PI);
57+
if (angle < 0)
58+
angle += 2.f * PI;
59+
return (180.f / PI) * angle;
60+
}
61+
5462
static __device__ inline bool IsMaxPoint(int idx1, const short2* points, const float* responses,
5563
const int* blockPtr, const int* pointIds, int gridW, int gridH, int imageRadius, int blockRadius)
5664
{
@@ -88,14 +96,6 @@ static __device__ inline bool IsMaxPoint(int idx1, const short2* points, const f
8896
return true;
8997
};
9098

91-
static __device__ float convertToDegree(float angle)
92-
{
93-
constexpr float PI = static_cast<float>(CV_PI);
94-
if (angle < 0)
95-
angle += 2.f * PI;
96-
return (180.f / PI) * angle;
97-
}
98-
9999
static __device__ float calcResponse(PtrStepb image, short2 pt)
100100
{
101101
constexpr int BLOCK_SIZE = 7;

0 commit comments

Comments
 (0)