[BUG]: Fix interpolation scheme for native parcellation and mask #276

Merged
synchon merged 3 commits from fix/interp-parcel-mask into main 2023-11-17 15:05:50 +00:00
3 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
Change interpolation scheme for parcel and mask native space transformation to nearest neighbour by `Synchon Mandal`_

View file

@ -361,7 +361,7 @@ def get_mask( # noqa: C901
# Set applywarp command
applywarp_cmd = [
"applywarp",
"--interp=spline",
"--interp=nn",
f"-i {prewarp_mask_path.resolve()}",
# use resampled reference
f"-r {target_data['reference_path'].resolve()}",

View file

@ -308,7 +308,7 @@ def get_parcellation(
# Set applywarp command
applywarp_cmd = [
"applywarp",
"--interp=spline",
"--interp=nn",
f"-i {prewarp_parcellation_path.resolve()}",
# use resampled reference
f"-r {target_data['reference_path'].resolve()}",