Skip to content

Commit c8d57f0

Browse files
committed
fixed slicing problem using new h5py version (issue 82)[#82]
1 parent 7f83ce0 commit c8d57f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deep_image_matching/io/h5_to_micmac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def get_matches(
8989
s1idx = np.argsort(matches1_idx)
9090

9191
# Get coordinates of matches
92-
x0y0 = features[key0]["keypoints"][matches0_idx[s0idx]]
93-
x1y1 = features[key1]["keypoints"][matches1_idx[s1idx]]
92+
x0y0 = features[key0]["keypoints"][:][matches0_idx[s0idx]]
93+
x1y1 = features[key1]["keypoints"][:][matches1_idx[s1idx]]
9494

9595
# Restore the original order
9696
x0y0 = x0y0[np.argsort(s0idx)]

0 commit comments

Comments
 (0)