python - 将斐济连接到 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。我已经下载了 Fiji: ImageJ,带有“包含电池”并将其解压缩到我的/home/username/
我也运行了命令sudo apt-get install imagej
。如何将此应用程序链接到 ITK?
解决方案
推荐阅读
- security - 为什么在身份验证期间使用 JWT 刷新令牌可以防止 CSRF?
- blazor - 发布应用程序后,blazor 托管的模板项目无法正常工作
- amazon-web-services - 获取对象的 AWS S3 存储桶策略,策略生成器 Json 代码中的错误
- fonts - 为什么 Windows 10 x64 上的 Antenna House Formatter 6.2 无法识别我的 Helvetica 字体?
- reactjs - 使用打字稿键入功能组件
- mysql - SQL if 查询功能
- javascript - 如果我的蛇向下或向上死亡,它会在重新启动后继续向上/向下。为什么?
- reactjs - REACT.JS 路径完全不渲染
- python - 尝试测量蠕虫的长度,但发现差异很大,可能是什么问题?
- arrays - 如何快速添加数组元素?