From b021bae6d16de49b96772b285c458b9afaac7573 Mon Sep 17 00:00:00 2001 From: Satyam Ghodasara Date: Fri, 8 Dec 2017 10:11:36 -0500 Subject: [PATCH] Fixed bug where Python used Matlab indexes --- register.py | 1 + 1 file changed, 1 insertion(+) diff --git a/register.py b/register.py index ffac798..17bc718 100644 --- a/register.py +++ b/register.py @@ -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)