open-discussion > How to convert .dat to .nifti
Showing 1-8 of 8 posts
Mar 8, 2011 11:03 AM | Riccardo Navarra
How to convert .dat to .nifti
Hi. I need to convert .dat files (as JHU Neonate Atlas in http://lbam.med.jhmi.edu/ ; JHU_neonate_linear_b0.dat
.. JHU_neonate_SS_t2ss.dat ) in Nifti? How to?
Tnx,
Riccardo
Tnx,
Riccardo
Mar 8, 2011 02:03 PM | Jochen Weber
RE: How to convert .dat to .nifti
Hey Riccardo,
Try downloading the file(s), rename the extension to .img, and then add the attached file as corresponding .hdr file?
Best,
/jochen
Try downloading the file(s), rename the extension to .img, and then add the attached file as corresponding .hdr file?
Best,
/jochen
Mar 8, 2011 03:03 PM | Riccardo Navarra
RE: How to convert .dat to .nifti
Ok for JHU_neonate_linear_xxx and JHU_neonate_nonlinear_xxx but it
doesn't work for JHU_neonate_SS_xxx :)
I need another .hdr for "SS" files?
Tnx,
Riccardo
I need another .hdr for "SS" files?
Tnx,
Riccardo
Mar 8, 2011 05:03 PM | Jochen Weber
RE: How to convert .dat to .nifti
Sorry I didn't check the SS files. They have a different datatype
(16-bit integer instead of 32-bit float). Here's the header for
those...
/jochen
/jochen
Mar 9, 2011 10:03 AM | Riccardo Navarra
RE: How to convert .dat to .nifti
Thank you again! Last issue :)
I view (by MRIcron) many files by using "1st" or "2nd" hdr but I got these errors:
View - HDR - File - Error:
NO - 1st hdr - JHU_neonate_linear_color.dat (Error: This image file is smaller ... Expected: 28512000 Selected 21384000 )
NO - 1st hdr - JHU_neonate_nonlinear_color.dat (Error: This image file is smaller ... Expected: 28512000 Selected 21384000 )
NO - 1st hdr - JHU_neonate_SS_122parcellation.dat (Error: This image file is smaller ... Expected: 28512000 Selected 7128000 )
NO - 1st hdr - JHU_neonate_SS_color.dat (Error: This image file is smaller ... Expected: 28512000 Selected 21384000 )
NO - 2nd hdr - JHU_neonate_linear_color.dat
NO - 2nd hdr - JHU_neonate_nonlinear_color.dat
NO - 2nd hdr - JHU_neonate_SS_122parcellation.dat (Error: This image file is smaller ... Expected: 14256000 Selected 7128000 )
NO - 2nd hdr - JHU_neonate_SS_color.dat
How to view these files?
Best Regards,
Riccardo
I view (by MRIcron) many files by using "1st" or "2nd" hdr but I got these errors:
View - HDR - File - Error:
NO - 1st hdr - JHU_neonate_linear_color.dat (Error: This image file is smaller ... Expected: 28512000 Selected 21384000 )
NO - 1st hdr - JHU_neonate_nonlinear_color.dat (Error: This image file is smaller ... Expected: 28512000 Selected 21384000 )
NO - 1st hdr - JHU_neonate_SS_122parcellation.dat (Error: This image file is smaller ... Expected: 28512000 Selected 7128000 )
NO - 1st hdr - JHU_neonate_SS_color.dat (Error: This image file is smaller ... Expected: 28512000 Selected 21384000 )
NO - 2nd hdr - JHU_neonate_linear_color.dat
NO - 2nd hdr - JHU_neonate_nonlinear_color.dat
NO - 2nd hdr - JHU_neonate_SS_122parcellation.dat (Error: This image file is smaller ... Expected: 14256000 Selected 7128000 )
NO - 2nd hdr - JHU_neonate_SS_color.dat
How to view these files?
Best Regards,
Riccardo
Mar 9, 2011 06:03 PM | Jochen Weber
RE: How to convert .dat to .nifti
The _color.dat files are in RGB datatype (see attached _color.hdr
file), but I wasn't able to display those in either SPM or MRIcron
(I don't know of any program that actually supports RGB-coded NIFTI
files).
Best,
/jochen
Best,
/jochen
Mar 9, 2011 06:03 PM | Jochen Weber
RE: How to convert .dat to .nifti
The _122parcellation.dat files are in byte (uint8) datatype (see
attached .hdr file). Those should work fine...
Mar 10, 2011 04:03 PM | Riccardo Navarra
RE: How to convert .dat to .nifti
Dear Jochen,
with lasts .hrd I can view all files now. I can convert "parcellation" to nifti too (I need to modify cal_max and cal_min in nifti header but no matters ;) ) To view RGB files I used ITK-SNAP successfully.
Thank you for support.
Riccardo
with lasts .hrd I can view all files now. I can convert "parcellation" to nifti too (I need to modify cal_max and cal_min in nifti header but no matters ;) ) To view RGB files I used ITK-SNAP successfully.
Thank you for support.
Riccardo