Hi, there:
I use the following command inside my code when converting a RGB image to a dicom image.
dataset->putAndInsertString(DCM_ImplementationVersionName,"test version");
And when read the header information by using ezDICOM, it shows same tag two times with different value.
0002,0013,Implementation Version Name=OFFIS.DCMTK.354
0002,0013,Implementation Version Name=test version
Some other tags have same problem such as
calling function
dataset->putAndInsertString(DCM_ImplementationClassUID,dcmGenerateUniqueIdentifier(uid,SITE_INSTANCE_UID_ROOT));
gives me the result of
0002,0012,Implementation Class UID=1.2.276.0.7230010.3.0.3.5.4.
0002,0012,Implementation Class UID=1.2.276.0.7230010.3.1.4.3805850462.2836.1173757361.1
Can someone tell me the reason and how to get rid of it?
Thanks,
snie
________
VOLCANO VAPORIZER
________
Rolls-Royce Twenty
Why showing same tag two times
Moderator: Moderator Team
Why showing same tag two times
Last edited by snie on Thu, 2011-02-17, 21:48, edited 2 times in total.
-
- DCMTK Developer
- Posts: 2055
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Hi,
All tags with group number 2 (0x0002,0x????) do belong to the seperated file meta header which is a mandatory part of each DICOM file and is always written in front of the DICOM dataset. So you don't have to insert this data manually into the dataset - this will lead to invalid DICOM files. DCMTK automatically creates this metaheader information for you when saving a dataset to a file.
Regards,
Michael
All tags with group number 2 (0x0002,0x????) do belong to the seperated file meta header which is a mandatory part of each DICOM file and is always written in front of the DICOM dataset. So you don't have to insert this data manually into the dataset - this will lead to invalid DICOM files. DCMTK automatically creates this metaheader information for you when saving a dataset to a file.
Regards,
Michael
Have to include tag 0002,0013?
I see, thanks a lot,
As for
0002,0013,Implementation Version Name=OFFIS.DCMTK.354
Does OFFIS.DCMTK.354 here mean that we use our DCMTK3.5.4 toolkits for software development and we will always have this information inside the dicom header, or can not move it? I know some other dicom images I downloaded form internet do not have this tag at all.
Regards,
snie
________
Volcano Classic
________
GLASS WEED PIPE
As for
0002,0013,Implementation Version Name=OFFIS.DCMTK.354
Does OFFIS.DCMTK.354 here mean that we use our DCMTK3.5.4 toolkits for software development and we will always have this information inside the dicom header, or can not move it? I know some other dicom images I downloaded form internet do not have this tag at all.
Regards,
snie
________
Volcano Classic
________
GLASS WEED PIPE
Last edited by snie on Thu, 2011-02-17, 21:48, edited 2 times in total.
-
- DCMTK Developer
- Posts: 2055
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
The implementation version name is defined in the toolkit. Of course you can insert your own information there, if you like. Otherwise, it actually is DCMTK writing your files, so you could just leave it as it is. To change it, change the definition in dcmdata/include/dcmtk/dcmdata/dcuid.h:
The tag is optional (see part 10 of the DICOM standard) and must not be included in a file.
Regards,
Michael
Code: Select all
#define OFFIS_DTK_IMPLEMENTATION_VERSION_NAME "OFFIS_DCMTK_354"
Regards,
Michael
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest