MCPcopy Index your code
hub / github.com/Vegetebird/GraphMLP / normalize_screen_coordinates

Function normalize_screen_coordinates

common/camera.py:6–8  ·  view source on GitHub ↗
(X, w, h)

Source from the content-addressed store, hash-verified

4
5
6def normalize_screen_coordinates(X, w, h):
7 assert X.shape[-1] == 2
8 return X / w * 2 - [1, h / w]
9
10
11def world_to_camera(X, R, t):

Callers 4

__init__Method · 0.90
prepare_dataMethod · 0.85
prepare_dataMethod · 0.85
get_pose3DFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected