MCPcopy Index your code
hub / github.com/drinkingcoder/NeuralMarker / resize_viewpoint

Function resize_viewpoint

eval_utils.py:15–20  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

13 plt.show()
14
15def resize_viewpoint(img):
16 if img.shape[0] > img.shape[1]:
17 resize = cv2.flip(cv2.transpose(img), 0)
18 return resize
19 else:
20 return img
21
22def resize_lighting(img):
23 if img.shape[0] > img.shape[1]:

Callers 1

evalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected