Filter löschen
Filter löschen

how i read and display the .mha file?

6 Ansichten (letzte 30 Tage)
Syed Mobashir
Syed Mobashir am 9 Mär. 2015
Kommentiert: Michael Haderlein am 10 Mär. 2015
i had a .mha file, i used the below two lines to display the image
V = mha_read_volume('abcd.mha');
imshow(squeeze(V(:,:,round(end/2))),[]);
but its is giving an error
'Undefined command/function 'mha_read_volume'

Akzeptierte Antwort

Michael Haderlein
Michael Haderlein am 9 Mär. 2015
Bearbeitet: Michael Haderlein am 9 Mär. 2015
The file mha_read_volume.m must either be in the current directory or be in one of the directories displayed when you enter path. Obviously, this file is in neither of these directories. So, either change your current directory or add the correct directory to your path with addpath(directory).
  2 Kommentare
Syed Mobashir
Syed Mobashir am 9 Mär. 2015
Sir Michael Haderlein how i add the m file. i m just applying this code
V = mha_read_volume('abcd.mha');
i add the folder but it still give same error
Michael Haderlein
Michael Haderlein am 10 Mär. 2015
Where did you add the m file? And what's your current directory?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by