File extension

File extension  

  By: pk617 on Dec. 8, 2021, 8:51 p.m.

Hi. I downloaded the dataset and extracted them. I have a question regarding the file extension. The files's extension are "mha". Should I convert them to DICOM? If the answer is yes, which application is recommended? And if the answer is no, how can I open the iamges?

Thanks.

Re: File extension  

  By: keelinm on Dec. 9, 2021, 9:28 a.m.

Hi, There is no need to convert the images to Dicom format. The mha format can be read by viewers such as itk-snap for example. To view the images with bounding boxes added on to them you could make a python script using SimpleITK to read them and plt.show() to display them. Best Regards, Keelin

Re: File extension  

  By: pk617 on Dec. 14, 2021, 8:18 p.m.

Keelin,

Thank you for your comment. It was really helpful. Is there any way to convert these images to dcm?

Thanks, Paris.

Re: File extension  

  By: keelinm on Dec. 15, 2021, 9:34 a.m.

Hi Paris, The SimpleITK library can write dcm, so you could, for example read in mha and write out dcm using that library if you want to do that. Best, Keelin