[BUG]: Fix interpolation scheme for native parcellation and mask #276
3 changed files with 3 additions and 2 deletions
1
docs/changes/newsfragments/276.bugfix
Normal file
1
docs/changes/newsfragments/276.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Change interpolation scheme for parcel and mask native space transformation to nearest neighbour by `Synchon Mandal`_
|
||||
|
|
@ -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()}",
|
||||
|
|
|
|||
|
|
@ -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()}",
|
||||
|
|
|
|||
Loading…
Reference in a new issue