Skip to content

Commit

Permalink
fix dimensions on projecting from MNI to native space
Browse files Browse the repository at this point in the history
- applying xfm used template as the reference instead of the native
- images were co-registered but dimensions differed
  • Loading branch information
ravnoor committed Sep 18, 2023
1 parent b45267c commit 5b89a47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@

args.t1 = os.path.join(args.outdir, args.t1_fname)
args.t2 = os.path.join(args.outdir, args.t2_fname)

args.t1_orig, args.t2_orig = args.t1, args.t2

cwd = os.path.realpath(os.path.dirname(__file__))

if bool(args.brain_masking):
Expand Down Expand Up @@ -176,7 +179,7 @@

files = [args.t1, args.t2]

orig_files = {"T1": args.t1, "FLAIR": args.t2}
orig_files = {"T1": args.t1_orig, "FLAIR": args.t2_orig}

transform_files = [t1_transform, t2_transform]
# files = {}
Expand Down

0 comments on commit 5b89a47

Please sign in to comment.