我知道SimpleITK可以读取Nifty (.nii)格式的3d图像,而且它还支持nii.gz压缩版本。但是,我无法加载nii.zip文件。如果我试图直接解压缩/解压缩,这些文件会抛出错误,而且也不会被SimpleITK识别为可读的格式之一。
参考数据集可在:https://academictorrents.com/details/27772adef6f563a1ecc0ae19a528b956e6c803ce中找到
发布于 2019-09-24 17:54:12
不久前,我下载了相同的数据集,我没有对它进行彻底的实验,但下面是我的经验:
- I am using Linux Ubuntu 18.04 and preinstalled unzipping utility from GUI
- The problems you are experiencing could be happening due to using different archive manager or maybe the dataset could have been damaged during download
- **solution** - try different archive manager and download the dataset again
- from my experience for quick checking of the medical image formats [Aliza viewer](https://www.aliza-dicom-viewer.com/) is the best program available with possible exports to different formats
- if you are using SimpleITK or (my favourite in python) [Nibabel](https://nipy.org/nibabel/) and want to read the zipped files directly you can refer to these answers how to tackle the problem of reading the files inside the zipped archives - [Stack overflow question 1](https://stackoverflow.com/questions/48456420/accessing-files-inside-a-zip-archive-without-extracting-them) and [Stack overflow question 2](https://stackoverflow.com/questions/19371860/python-open-file-from-zip-without-temporary-extracting-it)
https://stackoverflow.com/questions/57676269
复制相似问题