MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / entry_convert

Function entry_convert

core/utils/utils.py:169–178  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

167
168
169def entry_convert(entry):
170 intrinsic = np.array([entry[2], 0., entry[4],
171 0., entry[3], entry[5],
172 0., 0., 1.]).reshape(3, 3)
173
174 pose = np.eye(4)
175 pose[:3, :3] = np.array(entry[6:15]).reshape(3, 3)
176 pose[:3, 3] = np.array(entry[15:]).reshape(3)
177
178 return pose, intrinsic
179
180def fundamental_matrix_gen(Tcw1, Tcw2, K1, K2):
181

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected