From d4bebebc0c616e2adf2c18be690ab4c8c7824868 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Fri, 15 Nov 2024 09:45:55 -0500 Subject: [PATCH] DOC: example typo --- ants/registration/create_warped_grid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ants/registration/create_warped_grid.py b/ants/registration/create_warped_grid.py index 8a464631..f2241bff 100644 --- a/ants/registration/create_warped_grid.py +++ b/ants/registration/create_warped_grid.py @@ -53,7 +53,7 @@ def create_warped_grid(image, grid_step=10, grid_width=2, grid_directions=(True, >>> mi = ants.image_read( ants.get_ants_data( 'r64' ) ) >>> mygr = ants.create_warped_grid( mi ) >>> mytx = ants.registration(fixed=fi, moving=mi, type_of_transform = ('SyN') ) - >>> mywarpedgrid = ants.create_warped_grid( mi, grid_directions=(False,True), + >>> mywarpedgrid = ants.create_warped_grid( mygr, grid_directions=(False,True), transform=mytx['fwdtransforms'], fixed_reference_image=fi ) """ if ants.is_image(image): @@ -102,4 +102,4 @@ def create_warped_grid(image, grid_step=10, grid_width=2, grid_directions=(True, return ants.apply_transforms( fixed=fixed_reference_image, moving=gimage, transformlist=transform ) else: - return gimage \ No newline at end of file + return gimage