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
c326de43
Commit
c326de43
authored
Jan 16, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More natural sorting of MatType constants in performance reports.
parent
61cb83b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
perf_stat.cpp
modules/core/perf/perf_stat.cpp
+1
-1
stat.cpp
modules/core/src/stat.cpp
+4
-4
summary.py
modules/ts/misc/summary.py
+7
-2
No files found.
modules/core/perf/perf_stat.cpp
View file @
c326de43
...
...
@@ -87,7 +87,7 @@ PERF_TEST_P(Size_MatType, meanStdDev_mask, TYPICAL_MATS)
SANITY_CHECK
(
dev
,
1e-6
);
}
PERF_TEST_P
(
Size_MatType
,
countNonZero
,
TYPICAL_MATS_C1
)
PERF_TEST_P
(
Size_MatType
,
countNonZero
,
testing
::
Combine
(
testing
::
Values
(
TYPICAL_MAT_SIZES
),
testing
::
Values
(
CV_8UC1
,
CV_8SC1
,
CV_16UC1
,
CV_16SC1
,
CV_32SC1
,
CV_32FC1
,
CV_64FC1
)
)
)
{
Size
sz
=
get
<
0
>
(
GetParam
());
int
matType
=
get
<
1
>
(
GetParam
());
...
...
modules/core/src/stat.cpp
View file @
c326de43
...
...
@@ -232,10 +232,10 @@ typedef int (*CountNonZeroFunc)(const uchar*, int);
static
CountNonZeroFunc
countNonZeroTab
[]
=
{
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero8u
),
(
CountNonZeroFunc
)(
countNonZero8u
),
(
CountNonZeroFunc
)
(
countNonZero16u
),
(
CountNonZeroFunc
)
(
countNonZero16u
),
(
CountNonZeroFunc
)(
countNonZero32s
),
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero32f
),
(
CountNonZeroFunc
)
countNonZero64f
,
0
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero8u
),
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero8u
),
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero16u
),
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero16u
),
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero32s
),
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero32f
),
(
CountNonZeroFunc
)
GET_OPTIMIZED
(
countNonZero64f
)
,
0
};
...
...
modules/ts/misc/summary.py
View file @
c326de43
...
...
@@ -2,8 +2,13 @@ import testlog_parser, sys, os, xml, glob, re
from
table_formatter
import
*
from
optparse
import
OptionParser
convert
=
lambda
text
:
int
(
text
)
if
text
.
isdigit
()
else
text
alphanum_keyselector
=
lambda
key
:
[
convert
(
c
)
for
c
in
re
.
split
(
'([0-9]+)'
,
key
)
]
numeric_re
=
re
.
compile
(
"(
\
d+)"
)
cvtype_re
=
re
.
compile
(
"(8U|8S|16U|16S|32S|32F|64F)C(
\
d{1,3})"
)
cvtypes
=
{
'8U'
:
0
,
'8S'
:
1
,
'16U'
:
2
,
'16S'
:
3
,
'32S'
:
4
,
'32F'
:
5
,
'64F'
:
6
}
convert
=
lambda
text
:
int
(
text
)
if
text
.
isdigit
()
else
text
keyselector
=
lambda
a
:
cvtype_re
.
sub
(
lambda
match
:
" "
+
str
(
cvtypes
.
get
(
match
.
group
(
1
),
7
)
+
(
int
(
match
.
group
(
2
))
-
1
)
*
8
)
+
" "
,
a
)
alphanum_keyselector
=
lambda
key
:
[
convert
(
c
)
for
c
in
numeric_re
.
split
(
keyselector
(
key
))
]
def
getSetName
(
tset
,
idx
,
columns
,
short
=
True
):
if
columns
and
len
(
columns
)
>
idx
:
...
...
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