【发布时间】:2017-11-14 15:30:36
【问题描述】:
我正在使用 macOS Sierra 10.12.6,尝试安装 SimpleITK 的 SimpleElastix 扩展。我一直遵循here 的指示。在我让它工作之后,结果发现这个扩展似乎只包含在我使用 Python 2.7 时的 SimpleITK 中,而不是当我使用 Python 3.6 时,因为当我尝试时
import SimpleITK as sitk
resultImage = sitk.Elastix(sitk.ReadImage("fixedImage.nii"), sitk.ReadImage("movingImage.nii"))
我得到了错误
AttributeError: module 'SimpleITK' has no attribute 'Elastix'
我找到了这个suggestion,但无法让它在我的 Mac 上运行。
感谢您的建议,
TomD
【问题讨论】:
标签: python python-3.x itk elastix simpleitk