Hi
I am implementing Basic Gray Scale print management SCU . N_Set
So i am able to load pixel data from the image to dataset.
How can I create mandatery Basic Grayscale Image Sequence from my program and put pixel data i have read from the image file to it.
Where in dcmtk i can find sample code for creating sequence from program and update values like pixel data from dataset.
following is the sequence i am concerned..
Image Position (2020,0010) M/M
Basic Grayscale Image Sequence (2020,0110) M/M
>Samples Per Pixel (0028,0002) M/M
>Photometric Interpretation (0028,0004) M/M
>Rows (0028,0010) M/M >Columns (0028,0011) M/M
>Pixel Aspect Ratio (0028,0034) MC/M (Required if the aspect ration is not 1\1))
>Bits Allocated (0028,0100) M/M
>Bits Stored (0028,0101) M/M
>High Bit (0028,0102) M/M >Pixel Representation (0028,0103) M/M
>Pixel Data (7FE0,0010) M/M
Polarity (2020,0020) U/
how can we create sequence from program and update values
Moderator: Moderator Team
-
- Posts: 19
- Joined: Wed, 2005-02-09, 08:44
-
- DCMTK Developer
- Posts: 2052
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
take a look at the doxygen documentation. You can access it online here. All functionality you requested can be found in the dcmdata module. Take a look at DcmItem first. There are functions to insert, delete and modify element tags (and therefore sequences, too). Examples how to use this class are everywhere inside the dcmdata sources. As an example, the file mdfdsman.cc from dcmodify contains many operations of this kind.
Regards,
Michael
take a look at the doxygen documentation. You can access it online here. All functionality you requested can be found in the dcmdata module. Take a look at DcmItem first. There are functions to insert, delete and modify element tags (and therefore sequences, too). Examples how to use this class are everywhere inside the dcmdata sources. As an example, the file mdfdsman.cc from dcmodify contains many operations of this kind.
Regards,
Michael
Who is online
Users browsing this forum: Ahrefs [Bot], Baidu [Spider], Google [Bot] and 1 guest