Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
bb23288c
Commit
bb23288c
authored
Jan 30, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in SURF_GPU
parent
d38ca097
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
surf.cu
modules/gpu/src/cuda/surf.cu
+3
-5
surf.cpp
modules/gpu/src/surf.cpp
+3
-1
No files found.
modules/gpu/src/cuda/surf.cu
View file @
bb23288c
...
...
@@ -503,9 +503,7 @@ namespace cv { namespace gpu { namespace device
__constant__ float c_NY[2][5] = {{0, 0, 4, 2, 1}, {0, 2, 4, 4, -1}};
__global__ void icvCalcOrientation(const float* featureX, const float* featureY, const float* featureSize, float* featureDir)
{
#if defined (__CUDA_ARCH__) && __CUDA_ARCH__ >= 110
{
__shared__ float s_X[128];
__shared__ float s_Y[128];
__shared__ float s_angle[128];
...
...
@@ -597,6 +595,8 @@ namespace cv { namespace gpu { namespace device
bestx = sumx;
besty = sumy;
}
__syncthreads();
}
if (threadIdx.x == 0)
...
...
@@ -642,8 +642,6 @@ namespace cv { namespace gpu { namespace device
featureDir[blockIdx.x] = kp_dir;
}
}
#endif
}
#undef ORI_SEARCH_INC
...
...
modules/gpu/src/surf.cpp
View file @
bb23288c
...
...
@@ -200,7 +200,9 @@ namespace
keypoints
.
cols
=
featureCounter
;
if
(
!
upright
)
if
(
upright
)
keypoints
.
row
(
SURF_GPU
::
SF_DIR
).
setTo
(
Scalar
::
all
(
90.0
));
else
findOrientation
(
keypoints
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment