External Email - Use Caution        

Hello FreeSurfer Developers,

I am using FastSurfer for this processing, but the issue is related to FreeSurfer's mri_convert function. I wanted to perform some manual segmentation edits on the "aparc.DKTatlas+aseg.deep.mgz" output file of FastSurfer. Since ITK-SNAP can't open .mgz files, I used the mri_convert function to convert the .mgz file to .nii.gz. I performed the edits and tried to rerun FastSurfer using the manually edited .nii.gz file. I got the error:

"ERROR: Specified segmentation output and conformed image output do not have same file type.
You passed --asegdkt_segfile directory/to/aparc.DKTatlas+aseg.deep.nii.gz and --conformed_name directory/to/orig.mgz.
Make sure these have the same file-format and adjust the names passed to the flags accordingly!"

So I used mri_convert once again to convert the .nii.gz file back to .mgz. When tried to rerun FastSurfer, I got the error:

"You passed --surf_only or --no_asegdkt, but the whole-brain segmentation (directory/to/aparc.DKTatlas+aseg.deep.edited.mgz) could not be found."

I also tried opening the .mgz edited file using MRIcron, but I get an error there as well: "Error: first value in a MGH header should be 1 (got 1) and data type should be in the range 1..4. (got 10)", which is not the case when I open the original .mgz file. The way I am using the mri_convert function is simply "mri_convert aparc.DKTatlas+aseg.deep.edited.nii.gz aparc.DKTatlas+aseg.deep.edited.mgz".

I've searched the list and no similar errors have been reported. Please let me know if you need more details to help me troubleshoot this issue. For your time and help I would like to thank you in advance!

Best regards
Thanos Tsigaras



------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich
Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Stefan Müller
Geschäftsführung: Prof. Dr. Astrid Lambrecht (Vorsitzende),
Karsten Beneke (stellv. Vorsitzender), Dr. Ir. Pieter Jansens
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------