Search found 9 matches

by ajonesfl
Wed, 2017-10-11, 15:08
Forum: DCMTK - General
Topic: Multi SOP Instances in the Same file
Replies: 1
Views: 1717

Re: Multi SOP Instances in the Same file

The volume Pixel image data is 3D (x,y,z) while the projection Pixel image data is 2D (x,y).
by ajonesfl
Wed, 2017-10-11, 14:55
Forum: DCMTK - General
Topic: Multi SOP Instances in the Same file
Replies: 1
Views: 1717

Multi SOP Instances in the Same file

I need to save volume data about an image, but also save projection image data taken from different angles. So I actually have 4 sets of Pixel image data for the same scanned object. Is there a way to save all four pixel data images for the one scanned object in the same SOP?

Thanks in Advance.
by ajonesfl
Fri, 2017-09-15, 00:16
Forum: DCMTK - General
Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader
Replies: 11
Views: 10100

Re: E: DcmFileFormat: Cannot determine Version of MetaHeader

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.
by ajonesfl
Thu, 2017-09-14, 19:26
Forum: DCMTK - General
Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader
Replies: 11
Views: 10100

Re: E: DcmFileFormat: Cannot determine Version of MetaHeader

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...
by ajonesfl
Thu, 2017-09-14, 14:59
Forum: DCMTK - General
Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader
Replies: 11
Views: 10100

Re: E: DcmFileFormat: Cannot determine Version of MetaHeader

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_...
by ajonesfl
Wed, 2017-09-13, 20:22
Forum: DCMTK - General
Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader
Replies: 11
Views: 10100

Re: E: DcmFileFormat: Cannot determine Version of MetaHeader

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!
by ajonesfl
Wed, 2017-09-13, 19:41
Forum: DCMTK - General
Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader
Replies: 11
Views: 10100

Re: E: DcmFileFormat: Cannot determine Version of MetaHeader

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.
by ajonesfl
Wed, 2017-09-13, 19:13
Forum: DCMTK - General
Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader
Replies: 11
Views: 10100

Re: E: DcmFileFormat: Cannot determine Version of MetaHeader

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...
by ajonesfl
Wed, 2017-09-13, 15:04
Forum: DCMTK - General
Topic: E: DcmFileFormat: Cannot determine Version of MetaHeader
Replies: 11
Views: 10100

E: DcmFileFormat: Cannot determine Version of MetaHeader

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...