Search found 2505 matches

by J. Riesmeier
Wed, 2024-04-24, 21:25
Forum: DCMTK - General
Topic: Crash on shutdown of DcmQueryRetrieveSCP
Replies: 1
Views: 53

Re: Crash on shutdown of DcmQueryRetrieveSCP

Thank you for your report. I think the problem has been introduced with commit c34f4e46e6 . Here is a possible patch to fix this: diff --git a/dcmqrdb/libsrc/dcmqrsrv.cc b/dcmqrdb/libsrc/dcmqrsrv.cc index d9534238e..4c450c284 100644 --- a/dcmqrdb/libsrc/dcmqrsrv.cc +++ b/dcmqrdb/libsrc/dcmqrsrv.cc @...
by J. Riesmeier
Fri, 2024-04-19, 15:48
Forum: DCMRT
Topic: How to write contour sequence to DICOM file
Replies: 2
Views: 148

Re: How to write contour sequence to DICOM file

Mandatory data elements are missing. You should have checked the return value of structureSet.write() and also looked at the logger... Here is an improved version of your sample code: DRTStructureSetIOD structureSet; structureSet.setStudyInstanceUID("1.2.3.4"); structureSet.setSeriesInstan...
by J. Riesmeier
Mon, 2024-04-15, 17:37
Forum: DCMTK - General
Topic: How to save a single frame dicom
Replies: 3
Views: 151

Re: How to save a single frame dicom

Short comment from my side: Using the DicomImage class for extracting frames from a multi-frame image without losing information is certainly not the way to go. This is because the main purpose of this class is rendering images for display.
by J. Riesmeier
Mon, 2024-04-15, 13:44
Forum: DCMTK - General
Topic: UID's generated by DCMTK are DICOM-compliant ?
Replies: 6
Views: 225

Re: UID's generated by DCMTK are DICOM-compliant ?

Nevertheless, we will apply for our own org root at DIN.
Another option would be to apply for an "OID" (same concept as UID) at BfArM.
by J. Riesmeier
Mon, 2024-03-25, 20:44
Forum: DCMTK - General
Topic: UID's generated by DCMTK are DICOM-compliant ?
Replies: 6
Views: 225

Re: UID's generated by DCMTK are DICOM-compliant ?

I think I know this company. At least I had contact with a PACS company that claimed exactly the same thing. However, their statement is not correct (I even talked to the head of that company to clarify this). You can use the standard UID generation routine provided by the DCMTK, i.e. with the organ...
by J. Riesmeier
Tue, 2024-03-19, 13:24
Forum: DCMTK - General
Topic: Problem in parsing the string value of a private tag with dcmtk when the transfer syntax is LittleEndianImplicit (even i
Replies: 7
Views: 249

Re: Problem in parsing the string value of a private tag with dcmtk when the transfer syntax is LittleEndianImplicit (ev

The main difference between your program and dcmdump is probably that dcmdump uses the print() method while you are using the findAndGetXXX() methods.
That means, you should probably start with calling the print() method in your program and see whether VR and Value are printed correctly.
by J. Riesmeier
Tue, 2024-03-19, 10:33
Forum: DCMTK - General
Topic: Problem in parsing the string value of a private tag with dcmtk when the transfer syntax is LittleEndianImplicit (even i
Replies: 7
Views: 249

Re: Problem in parsing the string value of a private tag with dcmtk when the transfer syntax is LittleEndianImplicit (ev

The following question is more general about the private tags, I read that it is important that the private tags are relocatable to avoid conflict with other private tags: how can I make a relocatable private tags? Should I simply check in my dataset if another tag with the same (gggg, eeee) value ...
by J. Riesmeier
Tue, 2024-03-19, 10:24
Forum: DCMTK - General
Topic: Problem in parsing the string value of a private tag with dcmtk when the transfer syntax is LittleEndianImplicit (even i
Replies: 7
Views: 249

Re: Problem in parsing the string value of a private tag with dcmtk when the transfer syntax is LittleEndianImplicit (ev

I used your textual dump and created a binary DICOM files from it (using dump2dcm). Then I created a text file "private.dic" with the following content: (0051,"PIURTUS",31) LO UltrasoundSystem 1 PrivateTag Finally, I specified this private data dictionary as an additional file to...
by J. Riesmeier
Wed, 2024-03-06, 12:06
Forum: DCMTK - General
Topic: file size got reduced
Replies: 1
Views: 121

Re: file size got reduced

Large element values like Pixel Data are only loaded on demand, i.e. if you write to the same filename, the Pixel Data has not been loaded yet from the input file and is, therefore, stored with 0 byte length to the output file. One solution is to use different filenames for input and output file. An...
by J. Riesmeier
Thu, 2024-02-22, 10:04
Forum: DCMTK - General
Topic: unable to read a file
Replies: 8
Views: 304

Re: unable to read a file

I am sorry, but this very short explanation does not help (and it also makes no sense to me to "convert this tag in dicom"). Please describe in detail what you want to achieve. Otherwise no one will be able to help you in this regard.
by J. Riesmeier
Thu, 2024-02-22, 09:42
Forum: DCMTK - General
Topic: unable to read a file
Replies: 8
Views: 304

Re: unable to read a file

I am sorry, but I still don't know what you want to do and what you mean by "how to convert the SOP class". In order to help you, you should describe your problem in more detail, i.e. what do you want to achieve, what have you tried, what does not work, etc.
by J. Riesmeier
Wed, 2024-02-21, 23:54
Forum: DCMTK - General
Topic: unable to read a file
Replies: 8
Views: 304

Re: unable to read a file

The second file is not an image:

Code: Select all

> dcmdump +P SOPClassUID Anonymous.MR._.15.1.2017.06.28.09.41.02.294.59320538.dcm 
(0008,0016) UI =MRSpectroscopyStorage                   #  28, 1 SOPClassUID
by J. Riesmeier
Wed, 2024-02-21, 23:32
Forum: DCMTK - General
Topic: unable to read a file
Replies: 8
Views: 304

Re: unable to read a file

Short answer: The public and freely available DCMTK does not support decompression of JPEG 2000-compressed DICOM images unless you use an extension such as DCMJP2K.
by J. Riesmeier
Thu, 2024-02-15, 18:29
Forum: DCMTK - General
Topic: 32 bit unsigned overflow in dcmjpeg/libsrc/djcodecd.cc
Replies: 2
Views: 166

Re: 32 bit unsigned overflow in dcmjpeg/libsrc/djcodecd.cc

Thank you for your report. In fact, this issue has been fixed only recently (i.e. after the release of DCMTK 3.6.8 ). See this commit: https://git.dcmtk.org/?p=dcmtk.git;a=co ... 4a6cce06dd