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!