Reading a specific attribute from a DICOM header

3 views (last 30 days)
Oleg
Oleg on 9 Sep 2015
Commented: Oleg on 15 Sep 2015
Hello: Is it possible to read the value of a specific attribute from a DICOM header (i.e., without reading the whole header as it is done by using dicominfo.m)? Thanks.

Answers (1)

Tim Jackman
Tim Jackman on 14 Sep 2015
There is no built in functionality that I am aware of in MATLAB to read a single entry from a DICOM header. You could try to make a workaround that reads the metadata and processes the raw attributes using the dictionary while sifting through looking for your specified attribute, but this process may not be much more efficient (if at all) than using dicominfo to read in the header and grabbing your attribute from the structure. Hope this helps.
  1 Comment
Oleg
Oleg on 15 Sep 2015
That is what I thought. Thank you very much for your input, Tim!

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by