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
3f22a1c4
Commit
3f22a1c4
authored
Oct 27, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performace tests for ORB
parent
b720eddd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
perf_orb.cpp
modules/features2d/perf/perf_orb.cpp
+75
-0
No files found.
modules/features2d/perf/perf_orb.cpp
0 → 100644
View file @
3f22a1c4
#include "perf_precomp.hpp"
using
namespace
std
;
using
namespace
cv
;
using
namespace
perf
;
typedef
perf
::
TestBaseWithParam
<
std
::
string
>
orb
;
#define ORB_IMAGES \
"cv/detectors_descriptors_evaluation/images_datasets/leuven/img1.png",\
"stitching/a3.jpg"
PERF_TEST_P
(
orb
,
detect
,
testing
::
Values
(
ORB_IMAGES
)
)
{
String
filename
=
getDataPath
(
GetParam
());
Mat
frame
=
imread
(
filename
,
IMREAD_GRAYSCALE
);
if
(
frame
.
empty
())
FAIL
()
<<
"Unable to load source image "
<<
filename
;
Mat
mask
;
declare
.
in
(
frame
);
ORB
detector
(
1500
,
ORB
::
CommonParams
(
1.3
f
,
5
));
vector
<
KeyPoint
>
points
;
TEST_CYCLE
(
100
)
{
detector
(
frame
,
mask
,
points
);
}
}
PERF_TEST_P
(
orb
,
extract
,
testing
::
Values
(
ORB_IMAGES
)
)
{
String
filename
=
getDataPath
(
GetParam
());
Mat
frame
=
imread
(
filename
,
IMREAD_GRAYSCALE
);
if
(
frame
.
empty
())
FAIL
()
<<
"Unable to load source image "
<<
filename
;
Mat
mask
;
declare
.
in
(
frame
);
ORB
detector
(
1500
,
ORB
::
CommonParams
(
1.3
f
,
5
));
vector
<
KeyPoint
>
points
;
detector
(
frame
,
mask
,
points
);
Mat
descriptors
;
TEST_CYCLE
(
100
)
{
detector
(
frame
,
mask
,
points
,
descriptors
,
true
);
}
}
PERF_TEST_P
(
orb
,
full
,
testing
::
Values
(
ORB_IMAGES
)
)
{
String
filename
=
getDataPath
(
GetParam
());
Mat
frame
=
imread
(
filename
,
IMREAD_GRAYSCALE
);
if
(
frame
.
empty
())
FAIL
()
<<
"Unable to load source image "
<<
filename
;
Mat
mask
;
declare
.
in
(
frame
);
ORB
detector
(
1500
,
ORB
::
CommonParams
(
1.3
f
,
5
));
vector
<
KeyPoint
>
points
;
Mat
descriptors
;
TEST_CYCLE
(
100
)
{
detector
(
frame
,
mask
,
points
,
descriptors
,
false
);
}
}
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