MATLAB Answers

Makrim
0

How can I load and view medical image .mha ?

Asked by Makrim
on 20 Mar 2014
Latest activity Commented on by Walter Roberson
on 19 Feb 2018
Hi,
I would like to read a medical image with extension .mha and store it in variable I. And then view I using imshow.
I need the simplest code source possible to start working on. Thank you
ps:I am using Matlab 2009 under Mac OS X 10.6.8.

  0 Comments

Sign in to comment.

2 Answers

Answer by Makrim
on 26 Mar 2014
 Accepted Answer

Read Medical Data 3D by Dirk-Jan Kroon 10 Nov 2010, worked for me.

  7 Comments

Thanks for your help. I tried it and it is no more giving me error. Pls i need to preview the image because it is not showing, i guess it has to do with rescaling. this is the message in the command window.
RescaleSlope not available, assuming 1 RescaleIntercept not available, assuming 0
thanks for your help
I'm using this file exchange to read my database, I'm using MATLAB Version: 9.0.0.341360 (R2016a). When I give the input
if true
[V,info]=ReadData3D('Normal001-DTI.mha');
end
I get the error Undefined function or variable 'ReadData3D'.
https://www.mathworks.com/matlabcentral/fileexchange/29344-read-medical-data-3d is not installed or it is not on your MATLAB path

Sign in to comment.