What is difference between dicomdisp vs dicominfo?

5 views (last 30 days)
Good afternoon, I am trying to access data within a dicom rt file. When I use dicomdisp the data I am interested is shown but when dicominfo is called on this file, the data is not displayed. What are the differences between a function call of dicomdisp and dicominfo that would cause this data loss?

Accepted Answer

Jeff Mather
Jeff Mather on 28 Nov 2016
What you're seeing here is the hierarchical nature of DICOM files. The "FluenceMapSeqeuence" struct in the dicominfo output contains the fields you want. (You can see this in the output of dicomdisp in the non-zero values of the "Level" column.)
In your example, you'd want to write something like this:
metadata = dicominfo('c:\file.dcm');
I hope this helps.

More Answers (1)

Walter Roberson
Walter Roberson on 8 Feb 2016
Edited: Walter Roberson on 8 Feb 2016
One difference is that dicomdisp() is for displaying only, but dicominfo() returns the information as a structure and so is for program use.
Some of the information returned by dicominfo does not get displayed by default because what is being returned is a struct array and the default display of struct arrays give summaries of the content if the content is more than a fairly small size. To see that information you would need to store the resulting struct and ask to display a particular field of it.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by