Creating SC Image

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Bojan
Posts: 11
Joined: Mon, 2013-04-22, 09:52

Creating SC Image

#1 Post by Bojan »

Hi,

I want to create a Secondary Capture Image by editing pixels of existing DICOM file and copying relevant attributes from it.

I am wondering how DCMTK can help me with that. For instance, is there a way to copy all attributes of a DICOM module or do attributes have to be copied one by one? Also, is DcmPixelData the highest level abstraction of the image (for editing purposes) or is there maybe a way to work with "Image Pixel" DICOM module some other way?

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Creating SC Image

#2 Post by Michael Onken »

Hi,

you can copy a whole dataset by calling DcmDataset->clone(). Then change all required attributes.

HTH,
Michael

Bojan
Posts: 11
Joined: Mon, 2013-04-22, 09:52

Re: Creating SC Image

#3 Post by Bojan »

So either I copy attributes one by one or I copy all and delete excess attributes one by one (and of course, change few to make it SC Image).

Thank you!

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Creating SC Image

#4 Post by Michael Onken »

Exactly :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest