How to solve this error?

조회 수: 1 (최근 30일)
Darsana P M
Darsana P M 2018년 3월 2일
댓글: Darsana P M 2018년 3월 3일
I was trying to input a dicom image. But I got an error.
Error using dicomread>getFileDetails (line 1426)
File "img.dcm" not found.
Error in dicomread>newDicomread (line 172)
fileDetails = getFileDetails(filename);
Error in dicomread (line 79)
[X, map, alpha, overlays] = newDicomread(msgname,
frames);
Error in tryyy (line 6)
I = dicomread('img.dcm');
The program written is:
I = dicomread('img.dcm');
info = dicominfo('img.dcm');
I = dicomread(info);
imshow(I,'DisplayRange',[]);
The image is stored in this loaction: C:\Users\Click Me\Desktop\NIELIT\images output How can I insert this into this program?

채택된 답변

Rik
Rik 2018년 3월 2일
I = dicomread('C:\Users\Click Me\Desktop\NIELIT\images output\img.dcm');
info = dicominfo('C:\Users\Click Me\Desktop\NIELIT\images output\img.dcm');
I = dicomread(info);
imshow(I,'DisplayRange',[]);
  댓글 수: 1
Darsana P M
Darsana P M 2018년 3월 3일
Thanks a lot sir, it worked.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by