MATLAB Answers

How to save .mha file in .jpg .png format ???

26 views (last 30 days)
Maham Khan
Maham Khan on 1 Jun 2018
Commented: Maham Khan on 26 Sep 2018
Hello !! I am Working on brain tumor detection and my dataset is Brats 2015 which is in .mha format i want to save that in .jpg .How can i do this .?? Need help urgently . Thanks in advance!!

  2 Comments

Bareera Samad
Bareera Samad on 26 Sep 2018
Did you get the code to convert .mha to .png or .jpg ?will u please help me to convert it to png
Maham Khan
Maham Khan on 26 Sep 2018
No i Actually used 3D Slicer for this purpose.uploaded the whole volume and then saved the desired slice as .png

Sign in to comment.

Accepted Answer

Varun Garg
Varun Garg on 5 Jun 2018
Edited: Varun Garg on 5 Jun 2018
One way is to use VV . It is an open-source and cross platform image viewer. I would suggest using vv to open the image and save it to the requisite format.
Other way is to (In case MATLAB is required)
(i) Use the MITK visualization software to convert from .mha to .raw
(ii) Use the following Matlab toolbox to read the .raw
PS. I have tested neither of them. I am just suggesting untested workarounds.

  9 Comments

Show 6 older comments
Walter Roberson
Walter Roberson on 11 Jun 2018
The open source software is named vv
mohamed wageh
mohamed wageh on 23 Sep 2018
Hi @Maham Khan! Can you please tell me how do you convert mha file to png format? How do you download the software and use it?
Walter Roberson
Walter Roberson on 23 Sep 2018
Linux and MS Windows binaries are available at that page. Source code is available through a github link on that page.

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 11 Jun 2018

  2 Comments

FAZLI  HADI
FAZLI HADI on 11 Jun 2018
Yes I have tried it but it is not working. I tried the open source source software of vv and MITK but it is also not working. But Maham says that she had tried some software which is working for her so I want that software name.
Walter Roberson
Walter Roberson on 11 Jun 2018
What happened when you tried to use the File Exchange contributions?

Sign in to comment.

Sign in to answer this question.

Products


Release

R2017b

Translated by