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

Function initK

dataset_loaders/load_Cambridge.py:51–56  ·  view source on GitHub ↗
(f, cx, cy)

Source from the content-addressed store, hash-verified

49 return (0 < p[0]) & (p[0] < x_res) & (0 < p[1]) & (p[1] < y_res)
50
51def initK(f, cx, cy):
52 K = np.eye(3, 3)
53 K[0, 0] = K[1, 1] = f
54 K[0, 2] = cx
55 K[1, 2] = cy
56 return K
57
58def generate_sampling_frustum(step, depth, K, f, cx, cy, x_res, y_res):
59 #pdb.set_trace()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected