当前位置:网站首页>Simpleitk encountered an ITK only supports orthonormal direction cosines error while reading NII
Simpleitk encountered an ITK only supports orthonormal direction cosines error while reading NII
2022-06-30 16:48:00 【Wutiande, young Xia】
Preface
There are some nii/nii.gz File in use simpleITK Encountered while reading ITK only supports orthonormal direction cosines Error of , This time it needs to be repaired
Code
file_path = "001.nii.gz"
try:
image = sitk.ReadImage(file_path)
except:
print(f'cosines problem occures, try to fix it...')
img = nib.load(file_path)
qform = img.get_qform()
img.set_qform(qform)
sform = img.get_sform()
img.set_sform(sform)
nib.save(img,file_path)
image = sitk.ReadImage(file_path)
print(f'now we have fixed it!')
print(image.GetSize())
边栏推荐
- CGR 21 (D,E,F)
- Cesium-1.72 learning (add points, lines, cubes, etc.)
- 居家办公浅谈远程协助快速提效心得 | 社区征文
- [activity registration] it's your turn to explore the yuan universe! I will be waiting for you in Shenzhen on July 2!
- Build cloud native observability capability suitable for organizations
- Implementation of Devops in the core field of qunar, the Internet R & D Efficiency
- Which direction should college students choose to find jobs after graduation?
- More dragon lizard self-developed features! Production available Anolis OS 8.6 officially released
- 华为帐号多端协同,打造美好互联生活
- Additional: (not written yet, don't look at ~ ~ ~) webmvcconfigurer interface;
猜你喜欢

Build cloud native observability capability suitable for organizations

15年做糊21款硬件,谷歌到底栽在哪儿?
MySQL8.0开启远程连接权限的方法步骤

华为帐号多端协同,打造美好互联生活

抖快B为啥做不好综艺
![[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入](/img/c2/d6760826b81589781574aebff61f9a.png)
[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入

7 月 2 日邀你来TD Hero 线上发布会

How cloudxr promotes the future development of XR

Etcd教程 — 第九章 Etcd之实现分布式锁

Rong Lianyun launched rphone based on Tongxin UOS to create a new ecology of localization contact center
随机推荐
Asp. NETCORE uses cache and AOP to prevent repeated commit
JS Es5 can also create constants?
Niuke: how many different binary search trees are there
Niuke.com: minimum cost of climbing stairs
GaussDB创新特性解读:Partial Result Cache,通过缓存中间结果对算子进行加速
招标公告:2022年台州联通Oracle一体机和数据库维保服务项目
牛客网:最小花费爬楼梯
What are the reasons for the errors reported by the Flink SQL CDC synchronization sqlserver
Which direction should college students choose to find jobs after graduation?
Bc1.2 PD protocol
In order to make remote work unaffected, I wrote an internal chat room | community essay
MySQL transaction / lock / log summary
备战数学建模36-时间序列模型2
2022蓝桥杯国赛B组-费用报销-(线性dp|状态dp)
居家办公浅谈远程协助快速提效心得 | 社区征文
The inspiration from infant cognitive learning may be the key to the next generation of unsupervised machine learning
2022新消费半年盘点:行业遇冷,但这九个赛道依然吸金
Additional: (not written yet, don't look at ~ ~ ~) corsfilter filter;
Symantec electronic sprint technology innovation board: Tan Jian, the actual controller, is an American who plans to raise 620million yuan
Under the pressure of technology, you can quickly get started with eth smart contract development, which will take you into the ETH world