Search found 8 matches

by tcdewit
Mon, 2012-06-25, 09:09
Forum: DCMTK - General
Topic: Problems with element length
Replies: 7
Views: 7638

Re: Problems with element length

Initially for debugging purposes only... I found out it doesn't really fix the problem though; it truncates the field to the original element-length (16 instead of 18 in above example).
by tcdewit
Sat, 2012-06-23, 14:53
Forum: DCMTK - General
Topic: Problems with element length
Replies: 7
Views: 7638

Re: Problems with element length

I'm using a program of myself, created with dcmtk to modify and save the dicom file. My program can read in the modified file and process the ViewCodeSequence even though it says its corrupted. As long as i modify the CodeValue to a string with smaller length than the original everything is ok. Do y...
by tcdewit
Sat, 2012-06-23, 14:27
Forum: DCMTK - General
Topic: Problems with element length
Replies: 7
Views: 7638

Re: Problems with element length

Btw... i'm using saveFile(File,EXS_Unknown,EET_ExplicitLength) for saving the modified dicom file.
by tcdewit
Sat, 2012-06-23, 12:56
Forum: DCMTK - General
Topic: Problems with element length
Replies: 7
Views: 7638

Problems with element length

I'm having some weird problems when editing elements under sequence "ViewCodeSequence". The original dicom file has: (0054,0220) SQ (Sequence with explicit length #=1) # 72, 1 ViewCodeSequence (fffe,e000) na (Item with explicit length #=3) # 64, 1 Item (0008,0100) SH [Anterior 3hr P.I] # 1...
by tcdewit
Fri, 2012-06-01, 20:35
Forum: DCMTK - General
Topic: Problems with reading Long String
Replies: 5
Views: 5773

Re: Problems with reading Long String

yes, i did :)
Just finished recompiling libdcmdata and it worked; my application now works without dictionaries present!
Thanks for your help!
by tcdewit
Fri, 2012-06-01, 19:44
Forum: DCMTK - General
Topic: Problems with reading Long String
Replies: 5
Views: 5773

Re: Problems with reading Long String

The private tag was indeed present in private.dic and was compiled into dcmdump, but not (yet) compiled into my program. The problem was solved by adding private.dic to my DCMDICTPATH! Only thing left now is to figure out how to compile the dictionaries into my program, but there's good documentatio...
by tcdewit
Fri, 2012-06-01, 17:31
Forum: DCMTK - General
Topic: Problems with reading Long String
Replies: 5
Views: 5773

Re: Problems with reading Long String

Since you are dealing with private tags: Is your dataset encoded with implicit or explicit VR? The datasets are encoded with implicit little endian VR. And, is the private data element encoded correctly (i.e. with Private Creator Element specified)? How can i check this? I only started using dcmtk ...
by tcdewit
Fri, 2012-06-01, 11:33
Forum: DCMTK - General
Topic: Problems with reading Long String
Replies: 5
Views: 5773

Problems with reading Long String

hi, i'm having a problem that's bugging me for a week now. I'm busy writing a utility that allows you to modify the image labels. Siemens uses DetectorInformationSequence>ViewCodeSequence>CodeMeaning which i can read/modify successfully now. However, General Electric uses a private tag (0011,1012) o...