Header only storescu/storescp
Moderator: Moderator Team
Header only storescu/storescp
We are working on automated DICOM QC project based on DICOM header data for research protocol compliance and header values based QC. Since we do not do image level QC, we only need to send DICOM header, and it should speed up our exams containing thousands of images. We need a way to SEND (storescu) and RECEIVE (storescp) DICOM header only using DCMTK. Can this be possible?
Though I could save DICOM header only into a file (via dcmdump file|grep PixelData, and subtracting the bytes from file size, call it X, then doing dd if=file of=file-hdr.dcm bs=1 count=X), this file cannot be sent/received.
Thanks.
Though I could save DICOM header only into a file (via dcmdump file|grep PixelData, and subtracting the bytes from file size, call it X, then doing dd if=file of=file-hdr.dcm bs=1 count=X), this file cannot be sent/received.
Thanks.
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: Header only storescu/storescp
You cannot use storescu to send a partial image. You could, however, use dcmodify to create sample datasets without pixel data:
Code: Select all
dcmodify -e PixelData <filename.dcm>
Re: Header only storescu/storescp
This worked. Thanks. I was able to send the .dcm file using storescu to storescp (and even to mirc CTP), and they worked fine.
Flip side to this is that there is an extra step of dcmodify for every image in the exam. Wish storescu had an option to strip pixel data on the fly before sending.
Nevertheless, there is a solution, at the least.
Flip side to this is that there is an extra step of dcmodify for every image in the exam. Wish storescu had an option to strip pixel data on the fly before sending.
Nevertheless, there is a solution, at the least.
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Header only storescu/storescp
Maybe, you want to add the following dcmdump option also to storescu:Wish storescu had an option to strip pixel data on the fly before sending
Code: Select all
+st --stop-after-elem [t]ag: "gggg,eeee" or dictionary name
stop parsing after element specified by t
Re: Header only storescu/storescp
$ storescu -v +st "7fe0,0010" -aec CTP localhost 4245 MR.1591982761.1.1.dcm
$dcmtk: storescu v3.6.5 2019-10-28 $
storescu: DICOM storage (C-STORE) SCU
error: Unknown option +st
So, there is no such option +st for storescu. Would it be possible for you to offer that option in source?
$dcmtk: storescu v3.6.5 2019-10-28 $
storescu: DICOM storage (C-STORE) SCU
error: Unknown option +st
So, there is no such option +st for storescu. Would it be possible for you to offer that option in source?
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Header only storescu/storescp
What I meant with my previous posting: you could add this functionality to storescu (i.e. on your own). Just look into the source code of dcmdump and modify the source code of storescu accordingly.
Re: Header only storescu/storescp
Thought so as well. I will dig. Thanks.
Who is online
Users browsing this forum: Google [Bot] and 1 guest