Skip to content

Commit bcc447a

Browse files
committed
Plot image resampled with antialias filter
1 parent 94e3aeb commit bcc447a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • src/torchio/transforms/preprocessing/spatial

src/torchio/transforms/preprocessing/spatial/resample.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ class Resample(SpatialTransform):
9191
subject.remove_image('seg')
9292
resample = tio.Resample(8)
9393
t1_resampled = resample(subject.t1)
94-
subject.add_image(t1_resampled, 'Downsampled')
94+
subject.add_image(t1_resampled, 'Antialias off')
95+
resample = tio.Resample(8, antialias=True)
96+
t1_resampled_antialias = resample(subject.t1)
97+
subject.add_image(t1_resampled_antialias, 'Antialias on')
9598
subject.plot()
9699
"""
97100

0 commit comments

Comments
 (0)