in depth_upsampling/dataset.py [0:0]
def rotate_image(img, direction):
if direction == 'Up':
pass
elif direction == 'Left':
img = cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE)
elif direction == 'Right':
img = cv2.rotate(img, cv2.ROTATE_90_COUNTERCLOCKWISE)
elif direction == 'Down':
img = cv2.rotate(img, cv2.ROTATE_180)
else:
raise Exception(f'No such direction (={direction}) rotation')
return img