Search found 2509 matches

by J. Riesmeier
Thu, 2024-02-22, 09:42
Forum: DCMTK - General
Topic: unable to read a file
Replies: 8
Views: 787

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: 787

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: 787

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: 573

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
by J. Riesmeier
Thu, 2024-02-15, 10:23
Forum: DCMTK - General
Topic: DCMTK Latest version update issue
Replies: 11
Views: 2966

Re: DCMTK Latest version update issue

Everything you need to know is described in the INSTALL file. How to compile the DCMTK with CMake can be found in the "BUILDING" section.
by J. Riesmeier
Wed, 2024-02-14, 11:07
Forum: DCMTK - General
Topic: DCMTK Latest version update issue
Replies: 11
Views: 2966

Re: DCMTK Latest version update issue

Of course, there are changes in the dcmdata module (including the dcmdata library). because i download the zip file from this site "https://dicom.offis.de/download/dcmtk/dcmtk368/" inside this there is no lib folder available, I can't saw that. so, i use older version lib folder. We never ...
by J. Riesmeier
Mon, 2024-02-05, 16:41
Forum: DCMTK - General
Topic: how to remove all frames from dicom
Replies: 3
Views: 778

Re: how to remove all frames from dicom

If there is no requirement that the result would still be a valid DICOM dataset/file, you could remove the Pixel Data (7fe0,0010) element by calling something like this on the main DICOM dataset: dataset->findAndDeleteElement(DCM_PixelData); However, unless you access the Pixel Data element (7fe0,00...
by J. Riesmeier
Sat, 2024-02-03, 16:01
Forum: DCMTK - General
Topic: DCMTK Latest version update issue
Replies: 11
Views: 2966

Re: DCMTK Latest version update issue

Since DcmtkWrapper seems to be part of your program/app (not of the DCMTK): Did you start with a clean development environment, e.g. by calling "make clean" or the like?
by J. Riesmeier
Sat, 2024-02-03, 15:59
Forum: DCMTK - General
Topic: how to remove all frames from dicom
Replies: 3
Views: 778

Re: how to remove all frames from dicom

Unfortunately, your question is not clear. Do you want to remove the Pixel Data element or to set its length to 0 (i.e. clear its value)? What would be the value of Rows and Columns then? What about other data elements that refer to the image frames (pixel data)? In both cases, this would make the D...
by J. Riesmeier
Fri, 2024-01-26, 10:07
Forum: DCMTK - General
Topic: Difference in ImageStatus after processing dicom file using dcmtk library
Replies: 16
Views: 25296

Re: Difference in ImageStatus after processing dicom file using dcmtk library

Can you expalin how is transfer syntax related? I thought I already explained this in my previous posting: for uncompressed pixel data (e.g. Explicit VR Little Endian Transfer Syntax), the maximum element length is limited to about 4.2 GB (due to the size of the element length field, which is 32-bi...
by J. Riesmeier
Fri, 2024-01-12, 14:35
Forum: DCMTK - General
Topic: Difference in ImageStatus after processing dicom file using dcmtk library
Replies: 16
Views: 25296

Re: Difference in ImageStatus after processing dicom file using dcmtk library

In addition to what Marco wrote: You could also sponsor development if this would be an option (see also this blog posting).
by J. Riesmeier
Thu, 2024-01-11, 18:18
Forum: DCMTK - General
Topic: How to convert a dicom file from RGB format into MONOCHROME2?
Replies: 4
Views: 8604

Re: How to convert a dicom file from RGB format into MONOCHROME2?

Does DicomImage::createMonochromeImage() convert all the frames from RGB to MONOCHROME2?
Yes, if all frames are actually selected for being loaded/processed (see DicomImage constructor).
by J. Riesmeier
Fri, 2024-01-05, 10:10
Forum: DCMTK - General
Topic: When Decompressing DICOM get "Tag not found" error
Replies: 2
Views: 9253

Re: When Decompressing DICOM get "Tag not found" error

Unfortunately, the log output of dcmdjpeg is not very useful in this case, but after looking at the dump output of the DICOM file, it seems that the mandatory Photometric Interpretation (0028,0004) attribute is missing in the main dataset. Also using dcmj2pnm gives you more details (e.g. another dat...
by J. Riesmeier
Sat, 2023-12-16, 12:05
Forum: DCMTK - General
Topic: dcm2pdf usage question
Replies: 2
Views: 9011

Re: dcm2pdf usage question

As the documentation (man page) says: "The dcm2pdf utility reads a DICOM file of the Encapsulated PDF Storage SOP Class (dcmfile-in), extracts the embedded PDF document and writes it to an output file (pdffile-out)." That means, this tool does not support what you expect. If you want to re...
by J. Riesmeier
Thu, 2023-12-14, 09:15
Forum: DCMTK - General
Topic: memory leak while encoding
Replies: 12
Views: 122853

Re: memory leak while encoding

Calling "delete filePtr.getDataset();" is certainly not a good idea, as the ownership of the internally managed dataset pointer is still with the DcmFileFormat instance. Instead, you should either call "delete filePtr.getAndRemoveDataset();" or "filePtr.clear();". By th...