Search found 1437 matches

by Marco Eichelberg
Tue, 2023-08-08, 12:52
Forum: DCMTK - General
Topic: Memory Leak occurring When Inserting 1000CT Datasets in std::map
Replies: 6
Views: 7965

Re: Memory Leak occurring When Inserting 1000CT Datasets in std::map

I would suggest that you use Valgrind to find out where exactly that leak happens.
by Marco Eichelberg
Fri, 2023-08-04, 21:09
Forum: DCMTK - General
Topic: DIMSE Failed to receive message (line=653)
Replies: 4
Views: 3929

Re: DIMSE Failed to receive message (line=653)

That could mean that the Wireshark capture is incomplete, or that the network connection was dropped by the PACS before the image transmission was complete, e.g. because the sending process crashed. That would also explain the error message on your side. Unfortunately that will be difficult to debug...
by Marco Eichelberg
Sat, 2023-07-15, 12:25
Forum: DCMTK - General
Topic: Segfault between DCMTK and pytorch lite
Replies: 5
Views: 4699

Re: Segfault between DCMTK and pytorch lite

I don't think that it is possible to determine the reason for the segmentation fault from the stack trace alone. As Jörg Riesmeier wrote, you really need to get this running in a debugger to determine the precise function call that causes the segfault. Possible reasons could be either an identical s...
by Marco Eichelberg
Fri, 2023-06-23, 09:09
Forum: DCMTK - General
Topic: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
Replies: 14
Views: 15938

Re: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?

Any comments from your side on why when we pass planar as 1 to above function, we can render it correctly and when we pass planar as 0, we cannot render it properly? Well, apparently you are correctly interpreting the output data in the case of planar configuration 1 (color-by-plane), but not in th...
by Marco Eichelberg
Wed, 2023-06-14, 11:43
Forum: DCMTK - General
Topic: Query www.dicomserver.co.uk's ExamDateAndTime
Replies: 4
Views: 3453

Re: Query www.dicomserver.co.uk's ExamDateAndTime

What you are seeing there is indeed the query (C-FIND request). You are basically querying for everything, so you get all worklist items as response. My understanding of class DcmFindSCU is that the syntax for the override keys is the same as the one used in the findscu command line tool, i.e. "...
by Marco Eichelberg
Mon, 2023-06-05, 21:43
Forum: DCMTK - General
Topic: Query www.dicomserver.co.uk's ExamDateAndTime
Replies: 4
Views: 3453

Re: Query www.dicomserver.co.uk's ExamDateAndTime

The attributes you are looking for are called Scheduled Procedure Step Start Date (0040,0002) and Scheduled Procedure Step Start Time (0040,0003). However, these attributes are not present in the main dataset, but encapsulated in the Scheduled Procedure Step Sequence (0040,0100). Try adding an empty...
by Marco Eichelberg
Thu, 2023-06-01, 16:48
Forum: DCMTK - General
Topic: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
Replies: 14
Views: 15938

Re: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?

I have looked at the anonymized sample file, and it seems to be perfectly OK. dcm2pnm and other tools based on dcmimage can correctly process the image. This means that there must be some bug in the code that uses DicomImage. Are you taking into account that DicomImage::getOutputData() delivers a di...
by Marco Eichelberg
Mon, 2023-05-29, 13:05
Forum: DCMTK - General
Topic: convertToUTF8() Cannot select source character set
Replies: 7
Views: 4403

Re: convertToUTF8() Cannot select source character set

If you can get access to an anonymized sample file, we'd be interested in a copy to bugs/at/dcmtk/dot/org. I have never seen Hebrew used in an ISO 2022 multi-character set setting, so even if, as Jörg points out, the file violates the DICOM standard, I'd still be interested in checking whether we wo...
by Marco Eichelberg
Fri, 2023-04-28, 11:48
Forum: DCMTK - General
Topic: 0xa900: Error: DataSetDoesNotMatchSOPClass
Replies: 7
Views: 5186

Re: 0xa900: Error: DataSetDoesNotMatchSOPClass

JPEG baseline is a lossy (irreversible) compression. That means that the compressed image may not be "identical" from a medical point of view to the original one - the difference being the image quality.
In such cases DICOM requires the SOP Instance UID to be changed.
by Marco Eichelberg
Fri, 2023-04-28, 11:47
Forum: DCMTK - General
Topic: how to add text/annotation to a dicom image
Replies: 4
Views: 4036

Re: how to add text/annotation to a dicom image

The overlay data should be a black/white bitmap, with one bit per pixel (equivalent to a DICOM image with Bits Allocated=1, Bits Stored=1, High Bit=0) and the same size as the main image.
by Marco Eichelberg
Fri, 2023-04-14, 14:10
Forum: DCMTK - General
Topic: CI logs with unit test executions?
Replies: 6
Views: 3437

Re: CI logs with unit test executions?

Correct. Our CI system is a "nightly build" of the current development branch and will overwrite the old logs after a couple of days. The logs of the build that happened to be identical to 3.6.7 release are long gone.
by Marco Eichelberg
Fri, 2023-04-14, 14:08
Forum: DCMTK - General
Topic: Issue with Reading Pixel Data using getUncompressedFrame
Replies: 1
Views: 2605

Re: Issue with Reading Pixel Data using getUncompressedFrame

Let's have a look: You are creating a DcmPixelData instance called "pixel_data" on the stack (for no obvious reason): DcmPixelData pixel_data = DcmPixelData(dcm_tag_pixel_data); Then you create a pointer that points to pixel_data: DcmElement* pixel_data_ptr = &pixel_data; Then you run ...
by Marco Eichelberg
Thu, 2023-03-23, 16:42
Forum: DCMTK - General
Topic: img2dcm says F: Error converting file: Not a JPEG file
Replies: 4
Views: 3357

Re: img2dcm says F: Error converting file: Not a JPEG file

To add to what my colleagues already said, there is no such thing as a "16 bit JPEG", unless you consider the lossless JPEG encoding that nobody outside the medical world supports. img2dcm expects an image using the Baseline lossy JPEG format (i.e. the JPEG format your camera or smart phon...
by Marco Eichelberg
Sat, 2023-03-11, 14:08
Forum: DCMTK - General
Topic: Minimal example (Linux) application using DCMTK with linking errors
Replies: 16
Views: 5865

Re: Minimal example (Linux) application using DCMTK with linking errors

Yes, this is possible. libxml2, which is used by some DCMTK tools, can be compiled with character set conversion support based on GNU iconv or ICU. In that case linking against libxml2 causes the dependency on ICU.