Encoding Private Tags

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Hayo Andreas Knoop
Posts: 2
Joined: Wed, 2004-11-10, 10:45

Encoding Private Tags

#1 Post by Hayo Andreas Knoop »

Hi,
we´re encoding some device (navigation) information and registration info (matrices,quats) as private tags in DICOM format for data exchange. What is your proposed way to encode this data into dcmtk:
- a modified dicom.dic? And then recompile the whole kit? Unfortunately, this didn´t work, seems like the dicom.dic is not used by the compiler
- a modified dicom.dic in DCMDICTPATH? This worked, but then has to be done on all machines using the dcmtk
Thank you for assistance, Hayo

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Hayo,

you should either add these private tags to the "private.dic" file which is part of the DCMTK or create a separate dictionary file. Please read the instructions in "private.dic" very carefully on how to specify private tags correctly.

Whether the dictionary files are built into the binaries or loaded at application start depends on the configuration. For Unix systems the default is to load dictionaries from file ("<prefix>/lib/dicom.dic" and/or DCMDICTPATH environment variable). For Windows systems the dictionary is usually built in. See "datadict.txt" for details.

In case you want to use the private tags shipped with DCMTK you should set the configure option "--with-private-tags" on Unix systems. On Windows Systems you should define the compiler directive WITH_PRIVATE_TAGS directly (see "config/include/cfwin32.h").

Please note that you'll need to rebuilt the built-in dictionary in case you've added new tags. See again "datadict.txt" for details.

Jörg

Post Reply

Who is online

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