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

15 ビュー (過去 30 日間)
Nagaraj H
Nagaraj H 2013 年 9 月 20 日
コメント済み: tareq 2023 年 12 月 12 日
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 件のコメント
Tan Leng Yee
Tan Leng Yee 2020 年 2 月 29 日
編集済み: Tan Leng Yee 2020 年 2 月 29 日
Can you provide me the Brain tumor MR images dataset. My email is lengyee068@gmail.com. Thank you.
Rushabh Kanadia
Rushabh Kanadia 2020 年 6 月 3 日
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

サインインしてコメントする。

採用された回答

Muhammad Imran
Muhammad Imran 2015 年 10 月 4 日
編集済み: Walter Roberson 2015 年 10 月 4 日
function data = mhd_read_image(filename)
info = mha_read_header(filename);
data = mha_read_volume(info);
  2 件のコメント
tareq
tareq 2023 年 12 月 12 日
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

サインインしてコメントする。

その他の回答 (1 件)

divya B
divya B 2019 年 2 月 15 日
編集済み: divya B 2019 年 2 月 15 日
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!!!!!!!!!!!!!!!

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by