微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

将斐济与 simpleITK 联系起来

如何解决将斐济与 simpleITK 联系起来

TUTORIAL/00_setup.ipynb 中,我似乎无法让 ITK 使用我的 Fiji.app 或 ImageJ 安装

对于以下代码片段:

# Retrieve an image from the network,read it and display using the external viewer
image_viewer = sitk.ImageViewer()
# Uncomment the line below to change the default external viewer to your viewer of choice and test that it works.
#image_viewer.SetApplication('/Applications/ITK-SNAP.app/Contents/MacOS/ITK-SNAP')

image_viewer.Execute(sitk.ReadImage(fetch_data("SimpleITK.jpg")))

我收到以下错误

RuntimeError: Exception thrown in SimpleITK ImageViewer_Execute: ../../Code/IO/src/sitkImageViewer.cxx:620:
sitk::ERROR: No ImageJ/Fiji application found.

我正在运行 Ubuntu 20.04,使用最新版本的 anaconda 和 python 3。我已经下载了带有“Batteries Included”的 Fiji: ImageJ 并将其解压缩到我的 /home/username/ 我还运行了命令 {{ 1}}。如何将此应用程序链接到 ITK?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。