ITK SNAP lesion mask files to FSL software

103 views
Skip to first unread message

Zoe Tsagaris

unread,
May 20, 2016, 11:07:36 AM5/20/16
to itksnap-users
Hello-
 
We are using ITK snap for developing lesion masks at my facility. 
However, our colleagues are using FSL and are unable to open the lesion mask files we send. 
Do you have suggestions for file type or conversion strategies to assist with this?
 
Thank you!
Zoe

Sandhitsu Das

unread,
May 20, 2016, 11:11:47 AM5/20/16
to itksna...@googlegroups.com
If you save in the nifti (.nii) format, FSL programs should be able to read it.

--
You received this message because you are subscribed to the Google Groups "itksnap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itksnap-user...@googlegroups.com.
To post to this group, send email to itksna...@googlegroups.com.
Visit this group at https://groups.google.com/group/itksnap-users.
For more options, visit https://groups.google.com/d/optout.

Zoe Tsagaris

unread,
May 20, 2016, 11:26:42 AM5/20/16
to itksnap-users
Thank you for your response.
 
Our colleagues are saying:
It seems that ITK-SNAP saves it in a format that our software programs (FSL & MRIcron) don’t recognize.  Your saved files have a fourth dimension that gets added per a query in fslinfo.  

Sandhitsu R Das

unread,
May 20, 2016, 11:48:07 AM5/20/16
to itksna...@googlegroups.com
I have not seen what your colleagues describe. It may be helpful to see the output of fslinfo on a .nii file that you save by using Save->Save Segmentation Image.

Philip A Cook

unread,
May 20, 2016, 11:50:49 AM5/20/16
to itksna...@googlegroups.com
For a 3D image, fslinfo will show the fourth dimension with one component.

Some programs have problems with SNAP's segmentation files because they don't support unsigned integers (NIFTI data type DT_UINT16 = 512)

Assuming your labels can be represented as signed 16-bit integers (ie, all labels are less than or equal to 32767), you can do

fslmaths snapLabels.nii.gz shortLabels.nii.gz -odt short
Reply all
Reply to author
Forward
0 new messages