MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / initK

Function initK

dataset_loaders/load_7Scenes.py:69–74  ·  view source on GitHub ↗
(f, cx, cy)

Source from the content-addressed store, hash-verified

67 return (0 < p[0]) & (p[0] < x_res) & (0 < p[1]) & (p[1] < y_res)
68
69def initK(f, cx, cy):
70 K = np.eye(3, 3)
71 K[0, 0] = K[1, 1] = f
72 K[0, 2] = cx
73 K[1, 2] = cy
74 return K
75
76def generate_sampling_frustum(step, depth, K, f, cx, cy, x_res, y_res):
77 x_max = depth * (x_res - cx) / f

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected