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?
Creating SC Image
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2073
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: Creating SC Image
Hi,
you can copy a whole dataset by calling DcmDataset->clone(). Then change all required attributes.
HTH,
Michael
you can copy a whole dataset by calling DcmDataset->clone(). Then change all required attributes.
HTH,
Michael
Re: Creating SC Image
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!
Thank you!
-
- DCMTK Developer
- Posts: 2073
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: Creating SC Image
Exactly
Who is online
Users browsing this forum: Bing [Bot] and 1 guest