diff --git a/docs/changes/newsfragments/276.bugfix b/docs/changes/newsfragments/276.bugfix new file mode 100644 index 000000000..54bc1a62c --- /dev/null +++ b/docs/changes/newsfragments/276.bugfix @@ -0,0 +1 @@ +Change interpolation scheme for parcel and mask native space transformation to nearest neighbour by `Synchon Mandal`_ diff --git a/junifer/data/masks.py b/junifer/data/masks.py index b96e18b04..62096bd57 100644 --- a/junifer/data/masks.py +++ b/junifer/data/masks.py @@ -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()}", diff --git a/junifer/data/parcellations.py b/junifer/data/parcellations.py index d34ac08a9..3442efd37 100644 --- a/junifer/data/parcellations.py +++ b/junifer/data/parcellations.py @@ -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()}",