From 0a9c0225bdbb7c89136cb7246d9d940d09ecd3aa Mon Sep 17 00:00:00 2001 From: "Nicholas Cullen, PhD" Date: Sat, 18 May 2024 21:41:27 +0200 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 63538b8b..599d515d 100644 --- a/README.md +++ b/README.md @@ -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.