ITK error on evaluation

ITK error on evaluation  

  By: hreso on July 3, 2022, 1:16 p.m.

During submission I got error: ITK ERROR: ITK only supports orthonormal direction cosines. No orthonormal definition found! ... I was saving predictions with nibabel library and also I was able to display masks in slicer ...can you check this error or give more infos about it ? Thanks

Re: ITK error on evaluation  

  By: newvoid7 on July 4, 2022, 12:10 a.m.

Hi, this is probabaly caused by difference when treating nii.gz files between nibabel and SimpleITK.

Try preprocess your predictions like this (in Python):

import nibabel as nib img = nib.load('xxx.nii.gz') img.set_qform(img.get_qform()) img.set_sform(img.get_sform()) nib.save('xxx.nii.gz')