pyplati / platipy

Processing Library and Analysis Toolkit for Medical Imaging in Python
https://pyplati.github.io/platipy/
Apache License 2.0
105 stars 24 forks source link

apply_field function #114

Closed mfizyczka closed 1 year ago

mfizyczka commented 2 years ago

Hi, in the example: https://colab.research.google.com/github/pyplati/platipy/blob/master/examples/generate_synthetic_head_neck_deformation.ipynb#scrollTo=oPWUCvwIMpbj

you're using apply_field but it is not defined. Could you please specify how to import this function?

Thanks in advance

rnfinnegan commented 2 years ago

Hello! Thanks for pointing this out. This notebook uses an older version of platipy, but I will update it soon.

The correct function to use is apply_transform, which can be found in platipy.imaging.registration.utils.apply_transform.

Let me know if you need any further assistance!

Rob

pchlap commented 1 year ago

This has been corrected in the example generate_synthetic_head_neck_deformation.ipynb Jupyter notebook.