niftiread niftiwrite cycle inappropriately changes image orientation

6 visualizaciones (últimos 30 días)
Randolph Otto
Randolph Otto el 20 de Mzo. de 2020
Comentada: Devineni Aslesha el 15 de Sept. de 2020
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.

Respuestas (1)

Devineni Aslesha
Devineni Aslesha el 23 de Mzo. de 2020
Hi Randolph,
I have heard that the issue with niftiwrite function is known and the concerned parties may be investigating further.
  2 comentarios
Ignacio
Ignacio el 14 de Sept. de 2020
Hi Devineni, has there been an update on this?
Devineni Aslesha
Devineni Aslesha el 15 de Sept. de 2020
Hi Ignacio,
niftiwrite orientation issue might be solved in MATLAB R2020b.

Iniciar sesión para comentar.

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by