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
e23f3131
Commit
e23f3131
authored
Aug 07, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xls-report.py: separated image width and height for easier analysis.
parent
95bdd4b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
xls-report.py
modules/ts/misc/xls-report.py
+14
-16
No files found.
modules/ts/misc/xls-report.py
View file @
e23f3131
...
...
@@ -259,7 +259,8 @@ def main():
for
(
w
,
caption
)
in
[
(
2500
,
'Module'
),
(
10000
,
'Test'
),
(
2500
,
'Image
\n
size'
),
(
2000
,
'Image
\n
width'
),
(
2000
,
'Image
\n
height'
),
(
2000
,
'Data
\n
type'
),
(
7500
,
'Other parameters'
)]:
sheet
.
col
(
col
)
.
width
=
w
...
...
@@ -311,17 +312,19 @@ def main():
image_size
=
next
(
ifilter
(
re_image_size
.
match
,
param_list
),
None
)
if
image_size
is
not
None
:
sheet
.
write
(
row
,
2
,
image_size
)
(
image_width
,
image_height
)
=
map
(
int
,
image_size
.
split
(
'x'
,
1
))
sheet
.
write
(
row
,
2
,
image_width
)
sheet
.
write
(
row
,
3
,
image_height
)
del
param_list
[
param_list
.
index
(
image_size
)]
data_type
=
next
(
ifilter
(
re_data_type
.
match
,
param_list
),
None
)
if
data_type
is
not
None
:
sheet
.
write
(
row
,
3
,
data_type
)
sheet
.
write
(
row
,
4
,
data_type
)
del
param_list
[
param_list
.
index
(
data_type
)]
sheet
.
row
(
row
)
.
write
(
4
,
' | '
.
join
(
param_list
))
sheet
.
row
(
row
)
.
write
(
5
,
' | '
.
join
(
param_list
))
col
=
5
col
=
6
for
c
in
config_names
:
if
c
in
configs
:
...
...
@@ -331,18 +334,13 @@ def main():
col
+=
1
if
args
.
show_times_per_pixel
:
sheet
.
write
(
row
,
col
,
xlwt
.
Formula
(
'''
{0} * 1000000 / (
VALUE(MID({1}; 1; SEARCH("x"; {1}) - 1))
* VALUE(MID({1}; SEARCH("x"; {1}) + 1; LEN({1})))
)
'''
.
replace
(
'
\n
'
,
''
)
.
replace
(
' '
,
''
)
.
format
(
xlwt
.
Formula
(
'{0} * 1000000 / ({1} * {2})'
.
format
(
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
col
-
1
),
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
2
)
)
),
time_style
)
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
2
),
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
3
)
)),
time_style
)
col
+=
1
col
+=
1
# blank column
...
...
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