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
b47bec2e
Commit
b47bec2e
authored
Mar 13, 2014
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
performance tests for ORB
parent
42f9ee3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
3 deletions
+89
-3
perf_brute_force_matcher.cpp
modules/features2d/perf/opencl/perf_brute_force_matcher.cpp
+3
-3
perf_orb.cpp
modules/features2d/perf/opencl/perf_orb.cpp
+86
-0
No files found.
modules/features2d/perf/opencl/perf_brute_force_matcher.cpp
View file @
b47bec2e
...
...
@@ -123,7 +123,7 @@ OCL_PERF_TEST_P(BruteForceMatcherFixture, RadiusMatch, ::testing::Combine(OCL_PE
SANITY_CHECK_MATCHES
(
matches1
,
1e-3
);
}
}
//
ocl
}
//
cvtest
}
//
ocl
}
//
cvtest
#endif //HAVE_OPENCL
#endif //
HAVE_OPENCL
modules/features2d/perf/opencl/perf_orb.cpp
0 → 100644
View file @
b47bec2e
#include "perf_precomp.hpp"
#include "opencv2/ts/ocl_perf.hpp"
#ifdef HAVE_OPENCL
namespace
cvtest
{
namespace
ocl
{
typedef
::
perf
::
TestBaseWithParam
<
std
::
string
>
ORBFixture
;
#define ORB_IMAGES OCL_PERF_ENUM("cv/detectors_descriptors_evaluation/images_datasets/leuven/img1.png", "stitching/a3.png")
OCL_PERF_TEST_P
(
ORBFixture
,
ORB_Detect
,
ORB_IMAGES
)
{
string
filename
=
getDataPath
(
GetParam
());
Mat
mframe
=
imread
(
filename
,
IMREAD_GRAYSCALE
);
if
(
mframe
.
empty
())
FAIL
()
<<
"Unable to load source image "
<<
filename
;
UMat
frame
,
mask
;
mframe
.
copyTo
(
frame
);
declare
.
in
(
frame
);
ORB
detector
(
1500
,
1.3
f
,
1
);
vector
<
KeyPoint
>
points
;
OCL_TEST_CYCLE
()
detector
(
frame
,
mask
,
points
);
sort
(
points
.
begin
(),
points
.
end
(),
comparators
::
KeypointGreater
());
SANITY_CHECK_KEYPOINTS
(
points
,
1e-5
);
}
OCL_PERF_TEST_P
(
ORBFixture
,
ORB_Extract
,
ORB_IMAGES
)
{
string
filename
=
getDataPath
(
GetParam
());
Mat
mframe
=
imread
(
filename
,
IMREAD_GRAYSCALE
);
if
(
mframe
.
empty
())
FAIL
()
<<
"Unable to load source image "
<<
filename
;
UMat
mask
,
frame
;
mframe
.
copyTo
(
frame
);
declare
.
in
(
frame
);
ORB
detector
(
1500
,
1.3
f
,
1
);
vector
<
KeyPoint
>
points
;
detector
(
frame
,
mask
,
points
);
sort
(
points
.
begin
(),
points
.
end
(),
comparators
::
KeypointGreater
());
UMat
descriptors
;
OCL_TEST_CYCLE
()
detector
(
frame
,
mask
,
points
,
descriptors
,
true
);
SANITY_CHECK
(
descriptors
);
}
OCL_PERF_TEST_P
(
ORBFixture
,
ORB_Full
,
ORB_IMAGES
)
{
string
filename
=
getDataPath
(
GetParam
());
Mat
mframe
=
imread
(
filename
,
IMREAD_GRAYSCALE
);
if
(
mframe
.
empty
())
FAIL
()
<<
"Unable to load source image "
<<
filename
;
UMat
mask
,
frame
;
mframe
.
copyTo
(
frame
);
declare
.
in
(
frame
);
ORB
detector
(
1500
,
1.3
f
,
1
);
vector
<
KeyPoint
>
points
;
UMat
descriptors
;
OCL_TEST_CYCLE
()
detector
(
frame
,
mask
,
points
,
descriptors
,
false
);
::
perf
::
sort
(
points
,
descriptors
);
SANITY_CHECK_KEYPOINTS
(
points
,
1e-5
);
SANITY_CHECK
(
descriptors
);
}
}
// ocl
}
// cvtest
#endif // HAVE_OPENCL
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