Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.io.video
Commits
bf2c212c
Commit
bf2c212c
authored
Feb 14, 2017
by
Amir Mohammadi
Browse files
numpy indexing uses integers only now
parent
0583a9cf
Pipeline
#7217
passed with stages
in 8 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/io/video/utils.py
View file @
bf2c212c
...
...
@@ -74,7 +74,7 @@ def generate_colors(height, width, shift):
retval
=
numpy
.
ndarray
((
3
,
height
,
width
),
dtype
=
'uint8'
)
# standard color test pattern
w
=
width
/
7
;
w2
=
2
*
w
;
w3
=
3
*
w
;
w4
=
4
*
w
;
w5
=
5
*
w
;
w6
=
6
*
w
w
=
width
/
/
7
;
w2
=
2
*
w
;
w3
=
3
*
w
;
w4
=
4
*
w
;
w5
=
5
*
w
;
w6
=
6
*
w
retval
[
0
,:,
0
:
w
]
=
255
;
retval
[
1
,:,
0
:
w
]
=
255
;
retval
[
2
,:,
0
:
w
]
=
255
;
retval
[
0
,:,
w
:
w2
]
=
255
;
retval
[
1
,:,
w
:
w2
]
=
255
;
retval
[
2
,:,
w
:
w2
]
=
0
;
retval
[
0
,:,
w2
:
w3
]
=
0
;
retval
[
1
,:,
w2
:
w3
]
=
255
;
retval
[
2
,:,
w2
:
w3
]
=
255
;
...
...
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