Skip to content

Commit 5b1736b

Browse files
authored
Update nitransforms/resampling.py
1 parent bfe592d commit 5b1736b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nitransforms/resampling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def apply(
9898
if data.ndim < transform.ndim:
9999
data = data[..., np.newaxis]
100100

101+
# For model-based nonlinear transforms, generate the corresponding dense field
101102
if hasattr(transform, "to_field") and callable(transform.to_field):
102103
targets = ImageGrid(spatialimage).index(
103104
_as_homogeneous(

0 commit comments

Comments
 (0)