How to read, display and process .mha files in MATLAB?
17 次查看(过去 30 天)
显示 更早的评论
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
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
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
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 个评论
Walter Roberson
2015-10-4
Those functions appear to be part of http://www.mathworks.com/matlabcentral/fileexchange/21993-viewer3d or http://www.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d
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
2019-2-15
编辑:divya B
2019-2-15
It worked follow these steps carefully:
- 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!!!!!!!!!!!!!!!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!