(self, image_id1, image_id2, matches)
| 197 | (image_id,) + descriptors.shape + (array_to_blob(descriptors),)) |
| 198 | |
| 199 | def add_matches(self, image_id1, image_id2, matches): |
| 200 | assert(len(matches.shape) == 2) |
| 201 | assert(matches.shape[1] == 2) |
| 202 | |
| 203 | if image_id1 > image_id2: |
| 204 | matches = matches[:,::-1] |
| 205 | |
| 206 | pair_id = image_ids_to_pair_id(image_id1, image_id2) |
| 207 | matches = np.asarray(matches, np.uint32) |
| 208 | self.execute( |
| 209 | "INSERT INTO matches VALUES (?, ?, ?, ?)", |
| 210 | (pair_id,) + matches.shape + (array_to_blob(matches),)) |
| 211 | |
| 212 | def add_two_view_geometry(self, image_id1, image_id2, matches, |
| 213 | F=np.eye(3), E=np.eye(3), H=np.eye(3), |
no test coverage detected