Clear Filters
Clear Filters

How to solve this error?

1 view (last 30 days)
Darsana P M
Darsana P M on 2 Mar 2018
Commented: Darsana P M on 3 Mar 2018
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?

Accepted Answer

Rik
Rik on 2 Mar 2018
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',[]);

More Answers (0)

Community Treasure Hunt

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

Start Hunting!