niftiread niftiwrite cycle inappropriately changes image orientation
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,
I have neuroimaging files which I have exported from Slicer as NIFTI files.
The following code snippet should produce outputImage.nii as an exact copy of inputImage.nii, but it does not.
filename = 'inputImage.nii'
im = niftiread(filename);
info = niftiinfo(filename);
niftiwrite(im,'outputImage.nii',info)
When I load outputImage.nii in Slicer, it is shown in a different orientation and location as inputImage.nii. I have found Slicer to be extraordinarily reliable for importing and exporting medical imaging data properly, so I do not think there is any error in Slicer. Even if there were, MATLAB should not have introduced any changes between inputImage.nii and outputImage.nii, so there is still evidence of a problem in MATLAB's functions even if there were a problem with Slicer.
댓글 수: 0
답변 (1개)
Devineni Aslesha
2020년 3월 23일
Hi Randolph,
I have heard that the issue with niftiwrite function is known and the concerned parties may be investigating further.
댓글 수: 2
Devineni Aslesha
2020년 9월 15일
Hi Ignacio,
niftiwrite orientation issue might be solved in MATLAB R2020b.
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!