Skip to content

Commit

Permalink
Fixed bug where Python used Matlab indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
sxg committed Dec 8, 2017
1 parent 90dcf01 commit b021bae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions register.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def main(args):
anchor_vol_list = np.squeeze(anchor_data[anchor_name]).tolist()
if not isinstance(anchor_vol_list, list):
anchor_vol_list = [anchor_vol_list]
anchor_vol_list[:] = [x - 1 for x in anchor_vol_list] # Convert MATLAB indexes to Python indexes

# Convert .mat to .nii
mat_to_nii(img, tmp_path)
Expand Down

0 comments on commit b021bae

Please sign in to comment.