Search found 1449 matches

by Marco Eichelberg
Tue, 2023-10-31, 12:09
Forum: DCMTK - General
Topic: Difference in ImageStatus after processing dicom file using dcmtk library
Replies: 16
Views: 25271

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

I have looked at the test image you provided. Due to the file size, you simply cannot decompress it, because the decompressed pixel data element would be larger than 4 GBytes, the upper limit for (7fe0,0010) Pixel Data in uncompressed format. You can, however, use DcmElement::getUncompressedFrame() ...
by Marco Eichelberg
Sat, 2023-09-30, 15:03
Forum: DCMTK - General
Topic: Compile dcmtk
Replies: 3
Views: 11480

Re: Compile dcmtk

I presume that you are working on Linux. The DCMTK build scripts on Linux expect pre-compiled developer versions of the external libraries to be available before CMake is run. For all of these libraries, official development packages exist on most Linux distributions, e.g. on Debian/Ubuntu, you just...
by Marco Eichelberg
Mon, 2023-09-18, 10:19
Forum: DCMTK - General
Topic: storescp .tmp file during receive and rename to dcm
Replies: 2
Views: 7441

Re: storescp .tmp file during receive and rename to dcm

You could use the --exec-on-reception command line option to rename the incoming files after the receive process is complete. As an example, the following command line (for Linux) will cause storescp to append a ".dcm" filename extension only once a file has been completely received and wr...
by Marco Eichelberg
Fri, 2023-09-15, 17:11
Forum: DCMTK - General
Topic: How to change TransferSyntaxUID
Replies: 2
Views: 8459

Re: How to change TransferSyntaxUID

On the other hand, if this is just a single file you are trying to fix, I would use dcmdump +W and dump2dcm to convert the dataset to a text file, and back, while keeping the pixel data in the binary file created by the dcmdump +W option.
by Marco Eichelberg
Fri, 2023-09-15, 17:09
Forum: DCMTK - General
Topic: How to change TransferSyntaxUID
Replies: 2
Views: 8459

Re: How to change TransferSyntaxUID

I don't think that changing the UID in the metaheader is a function that is foreseen in DCMTK because the transfer syntax value is directly bound to the encoding used, i.e. if you change transfer syntax to MPEG4, then DCMTK will look for an encoder module that would convert uncompressed pixel data t...
by Marco Eichelberg
Sat, 2023-09-02, 16:13
Forum: DCMTK - General
Topic: Compile dcmtk
Replies: 3
Views: 11480

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

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

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

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

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

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

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

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

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