Commit 1905394d authored by David GEISSBUHLER's avatar David GEISSBUHLER
Browse files

opencv to bob conversion fix?

parent 1a41c52b
Pipeline #47307 failed with stage
in 12 minutes and 22 seconds
......@@ -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.rollaxis(img, 2)
img = np.moveaxis(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.rollaxis(img, 2)
img = np.moveaxis(img, 2, 0)
img = np.flip(img, axis=0)
return img
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment