前言 有些nii/nii.gz的文件在使用simpleITK读取时会遇到ITK only supports orthonormal direction cosines的错误,这个时候就需要进行修复 代码 file_path = "001.nii.gz" try: image = sitk.ReadImage(file_path) except: print(f'cosines problem occures, try to fix it...') img