Skip to content
Snippets Groups Projects
Commit 46b9e4f8 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Use same interp setting when resampling deformation field to

alternate reference
parent fedc11cc
No related branches found
No related tags found
No related merge requests found
...@@ -750,10 +750,9 @@ def applyDeformation(image, field, ref=None, order=1, mode=None, cval=None): ...@@ -750,10 +750,9 @@ def applyDeformation(image, field, ref=None, order=1, mode=None, cval=None):
if not field.sameSpace(ref): if not field.sameSpace(ref):
field = resample.resampleToReference(field, field = resample.resampleToReference(field,
ref, ref,
order=1, order=order,
mode='constant', mode='constant',
cval=-1)[0] cval=-1)[0]
else: else:
field = field.data field = field.data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment