Reading a specific attribute from a DICOM header
3 views (last 30 days)
Show older comments
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.
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.
Find more on DICOM Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!