Filter löschen
Filter löschen

Visualizing a DICOM file of multiple frames

5 Ansichten (letzte 30 Tage)
Antonio
Antonio am 20 Jan. 2013
Beantwortet: Priyanka Matta am 9 Jun. 2021
I generated this brain tumor via TumorSim and converted it from .mha to .dcm using the gdcm2vtk tool.
I want to visualize it now in Matlab 2012a, I tried this, following the ankle demo (which is based on a single frame dicom file):
info = dicominfo('T1Gad.dcm');
image_data = dicomread('T1Gad.dcm');
imtool(image_data,'DisplayRange',[]);
I get the following errors:
Error using imageDisplayValidateParams>validateCData (line 117)
Unsupported dimension.
Error in imageDisplayValidateParams (line 31)
common_args.CData = validateCData(common_args.CData,image_type);
Error in imtool/addImageToImtool (line 323)
common_args = imageDisplayValidateParams(common_args);
Error in imtool (line 270)
addImageToImtool(varargin{:});
Error in mostrarDicom (line 12)
imtool(image_data,'DisplayRange',[]);

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Jan. 2013
What does
size(image_data)
report ?
I suspect that what you are getting from dicomread() is an array of slices, and that you need to display one slice at a time,
imshow(image_data(:,:,1), [])
or else use
implay(image_data)

Weitere Antworten (1)

Priyanka Matta
Priyanka Matta am 9 Jun. 2021
HI,
I read a DICOM pullback with the size 512x512x1x4235 .
I need to extract all the 4235 frames separately to find where the ROI started during acquisition.

Kategorien

Mehr zu DICOM Format finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by