MATLAB Answers


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
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.


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.


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: (R2016a). When I give the input
if true
I get the error Undefined function or variable 'ReadData3D'. is not installed or it is not on your MATLAB path

Sign in to comment.