DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Fri, 2017-09-22, 14:35

All times are UTC + 1 hour


Search found 7 matches
Search these results:

Author Message

 Forum: DCMTK - General   Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader

Posted: Fri, 2017-09-15, 00:16 

Replies: 11
Views: 72


Figured it out. You have to do the following:

cmake -DDCMTK_ENABLE_BUILTIN_DICTIONARY=ON -DDCMTK_ENABLE_EXTERNAL_DICTIONARY=OFF ../dcmtk-3.6.2

I hope this can help others who run into this.

 Forum: DCMTK - General   Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader

Posted: Thu, 2017-09-14, 19:26 

Replies: 11
Views: 72


I have it working correctly without having to load the dicom.dic in code. It loads automatically now. I made changes to the CMakeCache.txt file in order for the build to include the dicom.dic file and load it automatically. I set the following values in the file: DCMTK_ENABLE_BUILTIN_DICTIONARY BOOL...

 Forum: DCMTK - General   Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader

Posted: Thu, 2017-09-14, 14:59 

Replies: 11
Views: 72


Thanks! But removing that code causes those errors. So with my install, I must not have set something up so dicom.dic is loaded automatically. I am on a Linux Posix system using cmake to install dcmtk. DCMTK_ENABLE_BUILTIN_DICTIONARY I set to BOOL=ON in the CMakeCache.txt file, and set DCMTK_ENABLE_...

 Forum: DCMTK - General   Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader

Posted: Wed, 2017-09-13, 20:22 

Replies: 11
Views: 72


I found code to load the dicom.dic. That appears to have taken care of the issue:

DcmDataDictionary &dict = dcmDataDict.wrlock();
dict.loadDictionary("/home/Project/dcmtk/dcmtk-3.6.2/dcmdata/data/dicom.dic");
dcmDataDict.unlock();

I no longer get that error in the subject line. Thanks!

 Forum: DCMTK - General   Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader

Posted: Wed, 2017-09-13, 19:41 

Replies: 11
Views: 72


Is there a very simple example you can point me to in order to save a file. I found a very simple explain to load a file (https://github.com/marcinwol/dcmtk-basic-example).

Thanks in advance.

 Forum: DCMTK - General   Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader

Posted: Wed, 2017-09-13, 19:13 

Replies: 11
Views: 72


I removed the dataset->putAndInsertUint16(DCM_FileMetaInformationVersion, 0x0001) line from the code. The new program is below. But I still get the same error. uid[100]; DcmFileFormat fileFormat; DcmDataset *dataset = fileFormat.getDataset(); dataset->putAndInsertString(DCM_SOPClassUID, UID_Secondar...

 Forum: DCMTK - General   Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader

Posted: Wed, 2017-09-13, 15:04 

Replies: 11
Views: 72


I wrote a small test program and I keep getting the error listed in the subject. Here is the code below. I took this from the dcmtk documentation website, but I get the error. Lots of searching on the web has not pointed me in the right direction. Any help would be appreciated. Here is the code: cha...
Sort by:  
Page 1 of 1 [ Search found 7 matches ]


All times are UTC + 1 hour


Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group