Search found 1444 matches

by Marco Eichelberg
Sat, 2023-09-02, 16:13
Forum: DCMTK - General
Topic: Compile dcmtk
Replies: 3
Views: 5093

Re: Compile dcmtk

It's actually fairly simple. First of all, download the right package from https://dcmtk.org/en/dcmtk/dcmtk-software-development/ . You have apparently downloaded a package with pre-compiled executables, and not the DCMTK source code. Unpack the package ( tar xzf dcmtk-3.6.7.tar.gz ) and carefully r...
by Marco Eichelberg
Mon, 2023-08-28, 14:53
Forum: DCMTK - Installation
Topic: Compiling DCMTK for Multiplatform Use (iOS, macOS, tvOS)
Replies: 1
Views: 5766

Re: Compiling DCMTK for Multiplatform Use (iOS, macOS, tvOS)

Unfortunately, no. iOS and tvOS are not supported platforms for DCMTK (although I would be very exited to see a DICOM-enabled smart TV :P )
For MacOS, the build process is the same as for other Unix/Posix-like systems, based on CMake.
by Marco Eichelberg
Mon, 2023-08-28, 14:51
Forum: DCMTK - General
Topic: storescu issue
Replies: 5
Views: 4990

Re: storescu issue

I would be surprised if the filename had any role in this problem. Please provide more detail: What is the content of the file, what is the output of storescp --debug? Is there a crash does the tool report an error and terminate? Which DCMTK version, which operating system?
by Marco Eichelberg
Mon, 2023-08-28, 14:48
Forum: DCMTK - General
Topic: Security Assessment on dcmtk version 3.6.7
Replies: 1
Views: 3157

Re: Security Assessment on dcmtk version 3.6.7

The issue report is called "memory_leak_in_3.6.7" which should tell you that this bug is present in 3.6.7. It was fixed with commit c34f4e46e in June 2022. However, the bug only affects one tool (dcmqrscp), which leaks a few bytes of memory with each network connection handled. Feel free t...
by Marco Eichelberg
Mon, 2023-08-28, 14:39
Forum: DCMTK - General
Topic: Determine Amount of Files While Storescp transaction
Replies: 1
Views: 3054

Re: Determine Amount of Files While Storescp transaction

Unfortunately, the answer is no. The DICOM C-STORE network protocol does not provide this information. The client (SCU) sends image after image, but there is no information about how many images should be present and whether they should arrive in one or in multiple network connections. For this reas...
by Marco Eichelberg
Mon, 2023-08-28, 14:37
Forum: DCMTK - Installation
Topic: Issues running CMake generation for android toolchain
Replies: 2
Views: 3067

Re: Issues running CMake generation for android toolchain

This may sound trivial, but have you checked the content of android-emulator.log which should hopefully contain a meaningful error message?
If it doesn't, try removing the OUTPUT_QUIET and ERROR_QUIET flags in the execute_process() call in CMake/dcmtkUseAndroidSDK.cmake.
by Marco Eichelberg
Wed, 2023-08-16, 11:34
Forum: DCMTK - General
Topic: multiple configuration for JPEG decoders
Replies: 1
Views: 3306

Re: multiple configuration for JPEG decoders

Unfortunately DCMTK currently does not allow to have different values for this setting in different threads. The encoders and decoders in DCMTK have access to two parameter sets: the "codec parameters" and the "representation parameters". The representation parameters can be expl...
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: 8287

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

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

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

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

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

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

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