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.ip.stereo
Commits
1905394d
Commit
1905394d
authored
Jan 25, 2021
by
David GEISSBUHLER
Browse files
opencv to bob conversion fix?
parent
1a41c52b
Pipeline
#47307
failed with stage
in 12 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/ip/stereo/utils.py
View file @
1905394d
...
...
@@ -6,14 +6,14 @@ import cv2 as cv
def
convert_bob_to_cv
(
img
):
assert
len
(
img
.
shape
)
==
3
assert
img
.
shape
[
0
]
==
3
img
=
np
.
roll
axis
(
img
,
2
)
img
=
np
.
move
axis
(
img
,
0
,
-
1
)
img
=
np
.
flip
(
img
,
axis
=
2
)
return
img
def
convert_cv_to_bob
(
img
):
assert
len
(
img
.
shape
)
==
3
assert
img
.
shape
[
2
]
==
3
img
=
np
.
roll
axis
(
img
,
2
)
img
=
np
.
move
axis
(
img
,
2
,
0
)
img
=
np
.
flip
(
img
,
axis
=
0
)
return
img
...
...
Write
Preview
Supports
Markdown
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