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
c02c6768
Commit
c02c6768
authored
Apr 02, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed gpu performance sample (SURF usage)
added tests for filter2D
parent
489a1da0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
tests.cpp
samples/gpu/performance/tests.cpp
+34
-2
No files found.
samples/gpu/performance/tests.cpp
View file @
c02c6768
...
...
@@ -273,7 +273,7 @@ TEST(SURF)
SURF
surf
;
vector
<
KeyPoint
>
keypoints
;
vector
<
float
>
descriptors
;
Mat
descriptors
;
surf
(
src
,
Mat
(),
keypoints
,
descriptors
);
...
...
@@ -899,7 +899,6 @@ TEST(solvePnPRansac)
}
}
TEST
(
GaussianBlur
)
{
for
(
int
size
=
1000
;
size
<=
4000
;
size
+=
1000
)
...
...
@@ -928,6 +927,39 @@ TEST(GaussianBlur)
}
}
TEST
(
filter2D
)
{
for
(
int
size
=
1000
;
size
<=
4000
;
size
+=
1000
)
{
Mat
src
;
gen
(
src
,
size
,
size
,
CV_8UC4
,
0
,
256
);
for
(
int
ksize
=
3
;
ksize
<=
16
;
ksize
+=
2
)
{
SUBTEST
<<
"ksize = "
<<
ksize
<<
", "
<<
size
<<
'x'
<<
size
<<
", 8UC4"
;
Mat
kernel
;
gen
(
kernel
,
ksize
,
ksize
,
CV_32FC1
,
0.0
,
1.0
);
Mat
dst
;
cv
::
filter2D
(
src
,
dst
,
-
1
,
kernel
);
CPU_ON
;
cv
::
filter2D
(
src
,
dst
,
-
1
,
kernel
);
CPU_OFF
;
gpu
::
GpuMat
d_src
(
src
);
gpu
::
GpuMat
d_dst
;
gpu
::
filter2D
(
d_src
,
d_dst
,
-
1
,
kernel
);
GPU_ON
;
gpu
::
filter2D
(
d_src
,
d_dst
,
-
1
,
kernel
);
GPU_OFF
;
}
}
}
TEST
(
pyrDown
)
{
for
(
int
size
=
4000
;
size
>=
1000
;
size
-=
1000
)
...
...
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