ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
648 stars 164 forks source link

Typo in create_warped_grid #732

Closed amirhszd closed 1 week ago

amirhszd commented 1 week ago

There is a typo in the documentation for create_warped_grid. the create_warped_grid should take mygr.

import ants fi = ants.image_read( ants.get_ants_data( 'r16' ) ) 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), transform=mytx['fwdtransforms'], fixed_reference_image=fi )

ntustison commented 1 week ago

Great. Thanks. Please post a pull request.