pass in IndexPair arguments
parent
8007271f4b
commit
a2109a2437
|
@ -28,8 +28,8 @@ class TestDsfTrackGenerator(GtsamTestCase):
|
|||
|
||||
# For each image pair (i1,i2), we provide a (K,2) matrix of corresponding image indices (k1,k2).
|
||||
matches_dict = MatchIndicesMap()
|
||||
matches_dict[(0, 1)] = np.array([[0, 0], [1, 1]])
|
||||
matches_dict[(1, 2)] = np.array([[2, 0], [1, 1]])
|
||||
matches_dict[gtsam.IndexPair(0, 1)] = np.array([[0, 0], [1, 1]])
|
||||
matches_dict[gtsam.IndexPair(1, 2)] = np.array([[2, 0], [1, 1]])
|
||||
|
||||
tracks = DsfTrackGenerator().generate_tracks_from_pairwise_matches(matches_dict, keypoints_list)
|
||||
assert len(tracks) == 3
|
||||
|
|
Loading…
Reference in New Issue