Error using load_nii_hdr while using load_untouch_nii.m
古いコメントを表示
Hi, I would like to load a nifti file on matlab r2020b with this command: load_untouch_nii('Subject_a.nii.gz')
But I got an error: Error using load_nii_hdr (line 32) Cannot find file "Subject_a.gz.nii".
I am wondering why the input file name has been changed from XXX.nii.gz to XXX.gz.nii
回答 (2 件)
芯怡 徐
2022 年 4 月 7 日
0 投票
I tried to convert the string format using `str2mat` and the problem was solved.
帆
2023 年 2 月 23 日
0 投票
Unlike in load_nii.m, it seems that there is no check for ".gz" files in load_untouch_nii. Maybe you can just modify the source code and manually add the ".gz" file check before loading.
1 件のコメント
Nitish Katoch
2024 年 1 月 4 日
This really worked. Thanks!!!
カテゴリ
ヘルプ センター および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!