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
2666da89
Commit
2666da89
authored
Aug 11, 2014
by
edgarriba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DLS perf update
parent
cc81b4a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
perf_pnp.cpp
modules/calib3d/perf/perf_pnp.cpp
+4
-2
No files found.
modules/calib3d/perf/perf_pnp.cpp
View file @
2666da89
...
@@ -10,7 +10,7 @@ using namespace perf;
...
@@ -10,7 +10,7 @@ using namespace perf;
using
std
::
tr1
::
make_tuple
;
using
std
::
tr1
::
make_tuple
;
using
std
::
tr1
::
get
;
using
std
::
tr1
::
get
;
CV_ENUM
(
pnpAlgo
,
SOLVEPNP_ITERATIVE
,
SOLVEPNP_EPNP
/*, P3P*/
)
CV_ENUM
(
pnpAlgo
,
SOLVEPNP_ITERATIVE
,
SOLVEPNP_EPNP
,
SOLVEPNP_DLS
/*, P3P*/
)
typedef
std
::
tr1
::
tuple
<
int
,
pnpAlgo
>
PointsNum_Algo_t
;
typedef
std
::
tr1
::
tuple
<
int
,
pnpAlgo
>
PointsNum_Algo_t
;
typedef
perf
::
TestBaseWithParam
<
PointsNum_Algo_t
>
PointsNum_Algo
;
typedef
perf
::
TestBaseWithParam
<
PointsNum_Algo_t
>
PointsNum_Algo
;
...
@@ -20,7 +20,7 @@ typedef perf::TestBaseWithParam<int> PointsNum;
...
@@ -20,7 +20,7 @@ typedef perf::TestBaseWithParam<int> PointsNum;
PERF_TEST_P
(
PointsNum_Algo
,
solvePnP
,
PERF_TEST_P
(
PointsNum_Algo
,
solvePnP
,
testing
::
Combine
(
testing
::
Combine
(
testing
::
Values
(
/*4,*/
3
*
9
,
7
*
13
),
//TODO: find why results on 4 points are too unstable
testing
::
Values
(
/*4,*/
3
*
9
,
7
*
13
),
//TODO: find why results on 4 points are too unstable
testing
::
Values
((
int
)
SOLVEPNP_ITERATIVE
,
(
int
)
SOLVEPNP_EPNP
)
testing
::
Values
((
int
)
SOLVEPNP_ITERATIVE
,
(
int
)
SOLVEPNP_EPNP
,
(
int
)
SOLVEPNP_DLS
)
)
)
)
)
{
{
...
@@ -117,8 +117,10 @@ PERF_TEST_P(PointsNum, DISABLED_SolvePnPRansac, testing::Values(4, 3*9, 7*13))
...
@@ -117,8 +117,10 @@ PERF_TEST_P(PointsNum, DISABLED_SolvePnPRansac, testing::Values(4, 3*9, 7*13))
Mat
dist_coef
(
1
,
8
,
CV_32F
,
cv
::
Scalar
::
all
(
0
));
Mat
dist_coef
(
1
,
8
,
CV_32F
,
cv
::
Scalar
::
all
(
0
));
vector
<
cv
::
Point2f
>
image_vec
;
vector
<
cv
::
Point2f
>
image_vec
;
Mat
rvec_gold
(
1
,
3
,
CV_32FC1
);
Mat
rvec_gold
(
1
,
3
,
CV_32FC1
);
randu
(
rvec_gold
,
0
,
1
);
randu
(
rvec_gold
,
0
,
1
);
Mat
tvec_gold
(
1
,
3
,
CV_32FC1
);
Mat
tvec_gold
(
1
,
3
,
CV_32FC1
);
randu
(
tvec_gold
,
0
,
1
);
randu
(
tvec_gold
,
0
,
1
);
projectPoints
(
object
,
rvec_gold
,
tvec_gold
,
camera_mat
,
dist_coef
,
image_vec
);
projectPoints
(
object
,
rvec_gold
,
tvec_gold
,
camera_mat
,
dist_coef
,
image_vec
);
...
...
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