Effacer les filtres
Effacer les filtres

How to read, display and process .mha files in MATLAB?

58 vues (au cours des 30 derniers jours)
Nagaraj H
Nagaraj H le 20 Sep 2013
Commenté : tareq le 12 Déc 2023
I am having BRATS database of brain MR images with tumor in .mha format. How to read, display and process .mha files in MATLAB?
  3 commentaires
Tan Leng Yee
Tan Leng Yee le 29 Fév 2020
Modifié(e) : Tan Leng Yee le 29 Fév 2020
Can you provide me the Brain tumor MR images dataset. My email is lengyee068@gmail.com. Thank you.
Rushabh Kanadia
Rushabh Kanadia le 3 Juin 2020
Hi, I am not able to access the BraTS Dataset as well, my email address is rushabhkanadia at gmail dot com
Could you please share it with me. Please

Connectez-vous pour commenter.

Réponse acceptée

Muhammad Imran
Muhammad Imran le 4 Oct 2015
Modifié(e) : Walter Roberson le 4 Oct 2015
function data = mhd_read_image(filename)
info = mha_read_header(filename);
data = mha_read_volume(info);
  2 commentaires
tareq
tareq le 12 Déc 2023
hi guys
I downloaded the functions, copied the above code and applied it
But it shows me an error message
Which (Invalid field name: '0008|0020'.
Error in mha_read_header (line 78)
info.(type)=data;)
can someone help me with it

Connectez-vous pour commenter.

Plus de réponses (1)

divya B
divya B le 15 Fév 2019
Modifié(e) : divya B le 15 Fév 2019
It worked follow these steps carefully:
  1. click Download (rt most) in the following link
https://in.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d you will be able to download .rar file named as ReadData3D_version1K
2. export .rar
3. Open Matlab and add this folder to the path.
4. Write these following program in the .mfile/ command window
data = mha_read_header('complete .mha file path');
V = mha_read_volume('complete .mha file path');
imshow(squeeze(V(:,:,round(end/2))),[]);
5. run
DONE
BAAAAAAAAAAAAM!!!!!!!!!!!!!!!

Catégories

En savoir plus sur Install Products dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by