How to solve this error?

1 visualización (últimos 30 días)
Darsana P M
Darsana P M el 2 de Mzo. de 2018
Comentada: Darsana P M el 3 de Mzo. de 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?

Respuesta aceptada

Rik
Rik el 2 de Mzo. de 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',[]);
  1 comentario
Darsana P M
Darsana P M el 3 de Mzo. de 2018
Thanks a lot sir, it worked.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre DICOM Format en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by