Skip to content

Commit cd4c34d

Browse files
authored
Merge pull request #3424 from axiezai/master
ENH: Add "GenericLabel" to antsRegistration interpolation option.
2 parents 5ac2f18 + 01e4a5e commit cd4c34d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/interfaces/ants/registration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ class RegistrationInputSpec(ANTSCommandInputSpec):
418418
"BSpline",
419419
"MultiLabel",
420420
"Gaussian",
421+
"GenericLabel",
421422
argstr="%s",
422423
usedefault=True,
423424
)
@@ -426,6 +427,7 @@ class RegistrationInputSpec(ANTSCommandInputSpec):
426427
traits.Tuple(
427428
traits.Float(), traits.Float() # Gaussian/MultiLabel (sigma, alpha)
428429
),
430+
traits.Tuple(traits.Str()), # GenericLabel (interpolator)
429431
)
430432

431433
write_composite_transform = traits.Bool(
@@ -1297,6 +1299,7 @@ def _format_arg(self, opt, spec, val):
12971299
"BSpline",
12981300
"MultiLabel",
12991301
"Gaussian",
1302+
"GenericLabel",
13001303
]
13011304
and isdefined(self.inputs.interpolation_parameters)
13021305
):

0 commit comments

Comments
 (0)