Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Cullen, PhD authored May 18, 2024
1 parent b6335be commit 0a9c022
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ img = ants.image_read(ants.get_data('mni')) # 3D image
img = ants.smooth_image(img, 2)
img = ants.resample_image(img, (3,3,3))
img = ants.pad_image(img, pad_width=(4,4,4))

# chaining operations is possible
img = img.smooth_image(2).resample_image((3,3,3)).pad_image(pad_width=(4,4,4))
```

And if you ever need to convert to or from numpy, it is straight-forward to do so.
Expand Down

0 comments on commit 0a9c022

Please sign in to comment.