You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In short, I'm reading a DICOM series using SimpleITK and I save the itkImage as MHD and Nifti. When I read the MHD and Nifti using a itkImageFileReader, I notice that the direction matrix of the MHD is more similar to the DICOM's. Here I'm talking about numerical differences mainly after the 6th decimal. When I run elastix 4.9 using MHDs and Niftis, I get differences in the results that may affect later steps in our pipelines (I'm using the same parameters described on #89 (comment)).
Already the reply in the ITK discourse is:
"Unfortunately, what you are seeing is a limitation of the nifti file format. You will have to use another format if you require this level of precision."
Is there a way to set properly the precision that is used during the registration in a way that make it less sensitive to small variations in the direction matrix? I already tried to set the DefaultOutputPrecision parameter to a lower value but didn't change.
Thanks in advance!
RaC
The text was updated successfully, but these errors were encountered:
Thank you. At the end, part of the answer was on the ITK post and in the Neurostars one. However, we decided to run elastix always with specific image properties:
Origin to 0, 0 ,0
Rounding spacing to 3-4th decimal
Set a fixed image orientation
Use the "identity" matrix instead of the original direction matrix.
After the registration procedure is finished we restore the original image properties of the fixed image.
Probably not the ideal, but helpful to preserve reproducibility.
Thanks again for your replies.
Hi guys,
I already posted a related question in the SimpleITK Discourse (https://discourse.itk.org/t/direction-orientation-matrix-dicom-vs-nifti/3289) and NeuroStars (https://neurostars.org/t/direction-orientation-matrix-dicom-vs-nifti/14382).
In short, I'm reading a DICOM series using SimpleITK and I save the itkImage as MHD and Nifti. When I read the MHD and Nifti using a itkImageFileReader, I notice that the direction matrix of the MHD is more similar to the DICOM's. Here I'm talking about numerical differences mainly after the 6th decimal. When I run elastix 4.9 using MHDs and Niftis, I get differences in the results that may affect later steps in our pipelines (I'm using the same parameters described on #89 (comment)).
Already the reply in the ITK discourse is:
"Unfortunately, what you are seeing is a limitation of the nifti file format. You will have to use another format if you require this level of precision."
Is there a way to set properly the precision that is used during the registration in a way that make it less sensitive to small variations in the direction matrix? I already tried to set the DefaultOutputPrecision parameter to a lower value but didn't change.
Thanks in advance!
RaC
The text was updated successfully, but these errors were encountered: