필터 지우기
필터 지우기

how i read and display the .mha file?

조회 수: 6 (최근 30일)
Syed Mobashir
Syed Mobashir 2015년 3월 9일
댓글: Michael Haderlein 2015년 3월 10일
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'

채택된 답변

Michael Haderlein
Michael Haderlein 2015년 3월 9일
편집: Michael Haderlein 2015년 3월 9일
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
Syed Mobashir
Syed Mobashir 2015년 3월 9일
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 2015년 3월 10일
Where did you add the m file? And what's your current directory?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by