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
e3be5f13
Commit
e3be5f13
authored
Nov 01, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sanity checks in several performance tests
parent
b5ecb1d3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
14 deletions
+11
-14
perf_pnp.cpp
modules/calib3d/perf/perf_pnp.cpp
+1
-1
perf_addWeighted.cpp
modules/core/perf/perf_addWeighted.cpp
+4
-4
perf_orb.cpp
modules/features2d/perf/perf_orb.cpp
+3
-3
perf_warp.cpp
modules/imgproc/perf/perf_warp.cpp
+2
-2
perf_cascadeclassifier.cpp
modules/objdetect/perf/perf_cascadeclassifier.cpp
+1
-4
No files found.
modules/calib3d/perf/perf_pnp.cpp
View file @
e3be5f13
...
...
@@ -55,7 +55,7 @@ PERF_TEST_P(PointsNum_Algo, solvePnP,
}
SANITY_CHECK
(
rvec
,
1e-6
);
SANITY_CHECK
(
tvec
,
1e-
6
);
SANITY_CHECK
(
tvec
,
1e-
3
);
}
PERF_TEST
(
PointsNum_Algo
,
solveP3P
)
...
...
modules/core/perf/perf_addWeighted.cpp
View file @
e3be5f13
...
...
@@ -25,12 +25,12 @@ PERF_TEST_P(Size_MatType, addWeighted, TYPICAL_MATS_ADWEIGHTED)
if
(
CV_MAT_DEPTH
(
type
)
==
CV_32S
)
{
//
see ticket 1529: absdiff can be without saturation on 32S
src1
/=
8
;
src2
/=
8
;
//
there might be not enough precision for integers
src1
/=
204
8
;
src2
/=
204
8
;
}
TEST_CYCLE
()
cv
::
addWeighted
(
src1
,
alpha
,
src2
,
beta
,
gamma
,
dst
,
dst
.
type
()
);
SANITY_CHECK
(
dst
);
SANITY_CHECK
(
dst
,
1
);
}
modules/features2d/perf/perf_orb.cpp
View file @
e3be5f13
...
...
@@ -22,7 +22,7 @@ PERF_TEST_P(orb, detect, testing::Values(ORB_IMAGES))
Mat
mask
;
declare
.
in
(
frame
);
ORB
detector
(
1500
,
1.3
f
,
5
);
ORB
detector
(
1500
,
1.3
f
,
1
);
vector
<
KeyPoint
>
points
;
TEST_CYCLE
()
detector
(
frame
,
mask
,
points
);
...
...
@@ -42,7 +42,7 @@ PERF_TEST_P(orb, extract, testing::Values(ORB_IMAGES))
Mat
mask
;
declare
.
in
(
frame
);
ORB
detector
(
1500
,
1.3
f
,
5
);
ORB
detector
(
1500
,
1.3
f
,
1
);
vector
<
KeyPoint
>
points
;
detector
(
frame
,
mask
,
points
);
sort
(
points
.
begin
(),
points
.
end
(),
comparators
::
KeypointGreater
());
...
...
@@ -64,7 +64,7 @@ PERF_TEST_P(orb, full, testing::Values(ORB_IMAGES))
Mat
mask
;
declare
.
in
(
frame
);
ORB
detector
(
1500
,
1.3
f
,
5
);
ORB
detector
(
1500
,
1.3
f
,
1
);
vector
<
KeyPoint
>
points
;
Mat
descriptors
;
...
...
modules/imgproc/perf/perf_warp.cpp
View file @
e3be5f13
...
...
@@ -43,7 +43,7 @@ PERF_TEST_P( TestWarpAffine, WarpAffine,
TEST_CYCLE
()
warpAffine
(
src
,
dst
,
warpMat
,
sz
,
interType
,
borderMode
,
Scalar
::
all
(
150
)
);
SANITY_CHECK
(
dst
);
SANITY_CHECK
(
dst
,
1
);
}
...
...
@@ -78,7 +78,7 @@ PERF_TEST_P( TestWarpPerspective, WarpPerspective,
TEST_CYCLE
()
warpPerspective
(
src
,
dst
,
warpMat
,
sz
,
interType
,
borderMode
,
Scalar
::
all
(
150
)
);
SANITY_CHECK
(
dst
);
SANITY_CHECK
(
dst
,
1
);
}
PERF_TEST_P
(
TestWarpPerspectiveNear_t
,
WarpPerspectiveNear
,
...
...
modules/objdetect/perf/perf_cascadeclassifier.cpp
View file @
e3be5f13
...
...
@@ -12,13 +12,10 @@ typedef perf::TestBaseWithParam<ImageName_MinSize_t> ImageName_MinSize;
PERF_TEST_P
(
ImageName_MinSize
,
CascadeClassifierLBPFrontalFace
,
testing
::
Combine
(
testing
::
Values
(
std
::
string
(
"cv/shared/lena.png"
),
std
::
string
(
"cv/shared/1_itseez-0000247.png"
),
std
::
string
(
"cv/shared/1_itseez-0000289.png"
),
std
::
string
(
"cv/shared/1_itseez-0000492.png"
),
std
::
string
(
"cv/shared/1_itseez-0000573.png"
),
std
::
string
(
"cv/shared/1_itseez-0000803.png"
),
std
::
string
(
"cv/shared/1_itseez-0000892.png"
),
std
::
string
(
"cv/shared/1_itseez-0000984.png"
),
std
::
string
(
"cv/shared/1_itseez-0001238.png"
),
std
::
string
(
"cv/shared/1_itseez-0001438.png"
),
std
::
string
(
"cv/shared/1_itseez-0002524.png"
)),
...
...
@@ -53,5 +50,5 @@ PERF_TEST_P(ImageName_MinSize, CascadeClassifierLBPFrontalFace,
}
std
::
sort
(
faces
.
begin
(),
faces
.
end
(),
comparators
::
RectLess
());
SANITY_CHECK
(
faces
);
SANITY_CHECK
(
faces
,
3.001
*
faces
.
size
()
);
}
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