reading a dicom file
Mostrar comentarios más antiguos
Dear Matlab communite
I am trying to read a dicom file (an MRI image) using matlab and then perform a Fourier transform of the image. I have written this code {please find below}:
clear all
info = dicominfo('MR01.dcm');
Y = dicomread(info);
J=imadjust(Y,stretchlim(Y),[0 1]);
F = fftshift(fft2(fftshift(J)));
When I run the code from the m file I get this message: ??? Undefined function or variable 'dicom'. However, when I copy and paste the code in the command window the code runs well without any error. I really do not know what is the cause of the error. May someone please help me in solving this query.
Best wishes AA
Respuestas (1)
Anathea Pepperl
el 17 de Abr. de 2012
1 voto
What is the name of your m file? It may be that the m file is not in the MATLAB path.
2 comentarios
Azza Ahmed
el 30 de Abr. de 2012
Sean de Wolski
el 30 de Abr. de 2012
Please accept Anathea's answer to mark this thread closed.
Categorías
Más información sobre DICOM Format en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!