I'm working with DICOM images and use DCMTK to make some process.
My problem here is that I have to retrieve only certain tags of batch of images. But the process take too long.
I'm using dcmdump -M -L +P '0010,0020' +P '0010,0010
-M
do not load very long values (e.g. pixel data)-L
print long tag values shortened (default)+P
print the textual dump of tag, this option can be specified multiple times
But the "dumping" of a single file take ~1sc
. It's because all tags are still loaded but then the +P
is searching through all tags.
I only have a few tags to retrieve. Is there any possibilities to only load certain specific tags to reduce the time necessary to dump a file?
Maybe DCMTK is not the right tool to use. I'm open to everything.
dcmdump +P 10,10 -M -L +r +sd . +fo +Fs -q
This should give you a list with the Patient's Name of all DICOM files stored in the current directory (and below). – J. Riesmeier