Skip to content

Commit

Permalink
Merge pull request #736 from ANTsX/warped_grid_example
Browse files Browse the repository at this point in the history
DOC: example typo
  • Loading branch information
cookpa authored Nov 15, 2024
2 parents aa67254 + d4bebeb commit 726931e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ants/registration/create_warped_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
return gimage

0 comments on commit 726931e

Please sign in to comment.