can DcmStorageSCU update tags before it sends?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
feldman_joel
Posts: 14
Joined: Fri, 2013-01-04, 16:23

can DcmStorageSCU update tags before it sends?

#1 Post by feldman_joel » Thu, 2018-12-13, 17:24

greetings,

i would like to use DcmStorageSCU to update a few dicom tags before it sends the image. can this be done using this class? i see the method addDataset exists for this class, but i would like to read an existing tag and modify a tag before i send the image and not copy in an entire new dataset. any help would be appreciated.

cheers,

joel

J. Riesmeier
DCMTK Developer
Posts: 2098
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: can DcmStorageSCU update tags before it sends?

#2 Post by J. Riesmeier » Mon, 2018-12-17, 20:25

I don't think that this functionality should be provided by the DcmStorageSCU class. Why don't you modify the DcmDataset instance before you call DcmStorageSCU::addDataset()? Since this method expects a pointer to the DICOM dataset there is no copying involved.

feldman_joel
Posts: 14
Joined: Fri, 2013-01-04, 16:23

Re: can DcmStorageSCU update tags before it sends?

#3 Post by feldman_joel » Thu, 2018-12-20, 16:50

thank you for the response. how do you modify the DcmDataset before DcmStorageSCU::addDataset() is called? i use DcmStorageSCU::addDicomFile() to load the image i want to send. i then want to modify a few tags for the image before i send, so how to i get access to the dataset from the image i just opened by using DcmStorageSCU::addDicomFile()?

best regards,

joel

J. Riesmeier
DCMTK Developer
Posts: 2098
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: can DcmStorageSCU update tags before it sends?

#4 Post by J. Riesmeier » Thu, 2018-12-20, 21:43

Don't use addDicomFile() but addDicomDataset() instead. Modifying the DcmDataset instance works with the various putAndInsertXXX() methods of the DcmItem class.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest