Search found 1237 matches

by Marco Eichelberg
Wed, 2019-11-27, 16:23
Forum: DCMTK - General
Topic: DCMCJPEG - Converting 16bit grayscale to 8bit
Replies: 1
Views: 397

Re: DCMCJPEG - Converting 16bit grayscale to 8bit

The JPEG baseline codec, selected by "+eb" in your command line, is limited to 8 bits per sample. Use Enhanced Sequential mode (+ee), which permits 12 bits/pixel. Furthermore, when converting from 16 to 12 bits, you may want to control the mapping from 16 to 12 bit values. By default, this will just...
by Marco Eichelberg
Mon, 2019-11-18, 11:58
Forum: DCMTK - Installation
Topic: HAVE_SSL_CTX_GET0_PARAM not defined when it should be.
Replies: 1
Views: 68

Re: HAVE_SSL_CTX_GET0_PARAM not defined when it should be.

HAVE_SSL_CTX_GET0_PARAM should indeed be defined when using OpenSSL 1.1.1. Can you please check the content of CMakeFiles/CMakeOutput.log in your build folder? When you search for "SSL_CTX" in this log file, you should find a log similar to this one: Determining if the SSL_CTX_get0_param exist passe...
by Marco Eichelberg
Thu, 2019-09-26, 08:39
Forum: DCMTK - General
Topic: Memory leak in DiPNGPlugin::write
Replies: 1
Views: 249

Re: Memory leak in DiPNGPlugin::write

Thank you very much for the bug report. I can confirm that the memory leak is present and that your proposed patch fixes the problem. The memory leak has been present since the introduction of class DiPNGPlugin with DCMTK 3.5.3 in 2004. The leak has been fixed now with commit #dd3d2034a, which shoul...
by Marco Eichelberg
Mon, 2019-08-19, 09:08
Forum: DCMTK - Installation
Topic: MSVCP DLL is missing...
Replies: 1
Views: 478

Re: MSVCP DLL is missing...

This DLL is part of the Visual C++ Redistributable for Visual Studio 2012, which can be downloaded here (microsoft.com)
by Marco Eichelberg
Mon, 2019-06-24, 11:36
Forum: DCMTK - General
Topic: Possible memory leaks when using DVInterface with OPENSLL
Replies: 2
Views: 412

Re: Possible memory leaks when using DVInterface with OPENSLL

See also the documentation here: https://www.openssl.org/docs/man1.1.1/m ... eanup.html
Normally, a manual call to OPENSSL_cleanup() should not be necessary and is not recommended, at least for newer OpenSSL versions.
by Marco Eichelberg
Fri, 2019-06-21, 16:26
Forum: DCMTK - General
Topic: Possible memory leaks when using DVInterface with OPENSLL
Replies: 2
Views: 412

Re: Possible memory leaks when using DVInterface with OPENSLL

DCMTK does indeed not call OPENSSL_cleanup() or any other OpenSSL cleanup function. Normally, one would do that right before the application ends, but then the cleanup only makes a difference for a memory leak checker, not for the real application. DCMTK does never unload/reload an OpenSSL dll/share...
by Marco Eichelberg
Wed, 2019-05-22, 08:48
Forum: DCMPRINT
Topic: PostScript images very large (about 140 Mb)
Replies: 3
Views: 734

Re: PostScript images very large (about 140 Mb)

If the size of the Postscript files has changed, then there are two possible reasons: The imaging modality produces images of much higher resolution The workstation has received a software update that changes the way printjobs are created. I have seen many workstations that tend to render all images...
by Marco Eichelberg
Thu, 2019-04-25, 12:41
Forum: DCMTK - General
Topic: DCMTK with TLS
Replies: 4
Views: 3537

Re: DCMTK with TLS

As a general remark, it is not a good idea to post a follow-up question to someone else's thread. The chances are rather high that nobody will see this. Now concerning your question: When you use the --add-cert-dir option, the certificate files in the cert directory must have specific filenames, bec...
by Marco Eichelberg
Mon, 2019-04-22, 11:01
Forum: DCMTK - General
Topic: compressing frames
Replies: 1
Views: 261

Re: compressing frames

It should be possible to implement that with DCMTK, although not very efficient in some cases: DCMTK does support decompression of individual frames, but not compression of individual frames of a multi-frame image. I would use the dcmcjpeg command line tool as a starting point, since it already does...
by Marco Eichelberg
Tue, 2019-04-09, 15:37
Forum: Other DICOM Tools
Topic: How DCMSIGN Verification Works?
Replies: 1
Views: 497

Re: How DCMSIGN Verification Works?

I suppose the answer will come too late to be useful, but it's actually rather simple: The DICOM standard offers a specification on how a digital signature can be created for a certain DICOM object (e.g. image or report) and stored inside the same object/file. A reader that supports digital signatur...
by Marco Eichelberg
Tue, 2019-04-09, 15:29
Forum: DCMTK - General
Topic: Dcm2pdf sometimes creates corrupted pdf.
Replies: 2
Views: 588

Re: Dcm2pdf sometimes creates corrupted pdf.

The bug has been fixed meanwhile in commit #52cf5b48c.
by Marco Eichelberg
Tue, 2019-04-09, 15:27
Forum: DCMPRINT
Topic: TCPSRV Landscape printing
Replies: 2
Views: 438

Re: TCPSRV Landscape printing

This is unfortunately not possible. The definitions of the page size and portrait/landscape orientation are independent from each other. When a page is set to landscape mode, the size definition from the configuration file is rotated by 90 degrees.
by Marco Eichelberg
Fri, 2018-11-30, 15:43
Forum: DCMTK - General
Topic: ftoa incorrect conversion of numeric_limits<double>::max
Replies: 1
Views: 291

Re: ftoa incorrect conversion of numeric_limits<double>::max

Thanks for the report. I have logged this in the DCMTK issue tracker as issue 860.
by Marco Eichelberg
Sun, 2018-11-25, 11:54
Forum: DCMTK - General
Topic: Accepted transfer syntax
Replies: 1
Views: 990

Re: Accepted transfer syntax

I guess the answer comes a bit late, but it's actually quite simple. The algorithm will accept the first transfer syntax from your own list of preferences that was proposed by the caller, so in this case, the result would be LittleEndianExplicit.
by Marco Eichelberg
Sun, 2018-11-25, 11:46
Forum: DCMTK - General
Topic: Questions about timeouts.
Replies: 2
Views: 517

Re: Questions about timeouts.

The ARTIM timer is described in detail in DICOM part 9 and only handles very specific timeout conditions: A network connection was received but no A-ASSOCIATE-RQ was received before the ARTIM timer expires An association was rejected (A-ASSOCIATE-RQ) and the remote side has not closed the connection...