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
643 stars 163 forks source link

Typo in create_warped_grid #732

Open amirhszd opened 1 day ago

amirhszd commented 1 day 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 day ago

Great. Thanks. Please post a pull request.