Search found 1362 matches

by Marco Eichelberg
Wed, 2022-12-07, 16:03
Forum: DCMTK - General
Topic: Any need for a schannel-based TLS layer for DCMTK?
Replies: 1
Views: 16

Re: Any need for a schannel-based TLS layer for DCMTK?

Well, this is a question that should be answered by the DCMTK users, not by the developers. If there is a perceived value in adding support for this alternative TLS implementation, this would certainly be technically feasible. We already support OpenSSL and LibreSSL in various incompatible versions,...
by Marco Eichelberg
Wed, 2022-12-07, 14:39
Forum: DCMTK - General
Topic: Sort based on AE Title
Replies: 8
Views: 50

Re: Sort based on AE Title

The issue on Windows may be caused by the fact that "mkdir" is an executable binary on Linux, but part of cmd.exe on Windows. Perhaps you might try to call

Code: Select all

storescp.exe -xf C:/Epona/metsrv.txt Default -aet MY_AE -od C:/Epona/Listener 4082 -xcr "cmd.exe /c mkdir C:\Epona\Listener\foo"
.
by Marco Eichelberg
Thu, 2022-11-17, 16:04
Forum: DCMTK - Installation
Topic: #define ssize_t long causes error with other library - how to proceed safely?
Replies: 2
Views: 159

Re: #define ssize_t long causes error with other library - how to proceed safely?

I agree. Using an ssize_t typedef with DCMTK that is "too large" is not a problem. DCMTK just expects ssize_t to be available, since on Posix/Linux platforms this is the return type for system functions like read() or write().
by Marco Eichelberg
Thu, 2022-11-17, 15:55
Forum: DCMTK - General
Topic: Carestream Trophy Panoramic images too bright
Replies: 4
Views: 202

Re: Carestream Trophy Panoramic images too bright

In any case, selecting appropriate values for Window Center and Window Width should "fix" the display, since there are no unusual look-up tables. When using dcmj2pnm, the --min-max-window might be a good starting point.
by Marco Eichelberg
Thu, 2022-11-17, 15:51
Forum: DCMTK - General
Topic: Browser display of jp2k frames
Replies: 1
Views: 78

Re: Browser display of jp2k frames

I leave it to the other readers to decide whether or not this is off-topic, but I can at least say that DCMTK does not offer a solution for that use case. I don't think that Browsers have built-in JPEG 2000 capabilities, so for a zero-footprint viewer you will have to use a JPEG 2000 decoder in Java...
by Marco Eichelberg
Tue, 2022-10-25, 09:45
Forum: DCMTK - General
Topic: Can't read compressed data
Replies: 6
Views: 264

Re: Can't read compressed data

Well, as I said:
  • adjust the PhotometricInterpretation to YBR_FULL (e.g. using dcmodify)
  • decompress the image using dcmdjpeg
  • then apply dcm2pnm to render the image
Alternatively, you can use "dcmj2pnm", which will cover steps 2 and 3 in one tool.
by Marco Eichelberg
Fri, 2022-10-14, 17:08
Forum: DCMTK - General
Topic: Can't read compressed data
Replies: 6
Views: 264

Re: Can't read compressed data

I can, however, successfully run "dcm_comp.dcm" through DCMTK's dcmdjpeg tool, which decompresses it. I can also run dcm2pnm over the compressed image to create a bitmap rendering. However, if you want to see correct colors, the PhotometricInterpretation needs to be set to YBR_FULL before the image ...
by Marco Eichelberg
Fri, 2022-10-14, 17:03
Forum: DCMTK - General
Topic: Can't read compressed data
Replies: 6
Views: 264

Re: Can't read compressed data

You can ignore the warnings, but "Information Object Not found" indicates some fundamental problem. SOP Class UID missing?
by Marco Eichelberg
Fri, 2022-10-14, 16:56
Forum: DICOMscope - General
Topic: Question about graphics coordinates in presentation states
Replies: 1
Views: 291

Re: Question about graphics coordinates in presentation states

I agree that this is a bug in DICOMscope. The overlay seems to be offset by about two pixels horizontally and vertically. Even worse, when you rotate the image, the offset seems to change between 0 and 2 pixels. Unfortunately, this rendering of graphical overlays is part of DICOMscope's Java layer a...
by Marco Eichelberg
Tue, 2022-10-11, 13:00
Forum: DCMTK - General
Topic: Can't read compressed data
Replies: 6
Views: 264

Re: Can't read compressed data

Try running the compressed file through "dciodvfy" from dicom3tools - in most cases you will get a meaningful error message.
by Marco Eichelberg
Tue, 2022-09-06, 19:19
Forum: DCMTK - General
Topic: dcmodify: image extremely truncated
Replies: 7
Views: 369

Re: dcmodify: image extremely truncated

My guess is that this is indeed some out-of-memory condition. dcmodify calls DcmItem::loadAllDataIntoMemory() to load the entire DICOM file into main memory before starting to modify it, but apparently does not check the return code of this call. Are you perhaps using a 32-bit binary? That would exp...
by Marco Eichelberg
Tue, 2022-09-06, 19:09
Forum: DCMTK - General
Topic: Invalid sop instance uid - bad Dicom file
Replies: 11
Views: 480

Re: Invalid sop instance uid - bad Dicom file

That quote only means that applications are not supposed to read meaning into the structure of the UIDs (e.g. they must not assume that UID 1.2.3.4 is in any way related to UID 1.2.3). That does not prevent an application to check whether or not a UID is syntactically valid, i.e. contains no leading...
by Marco Eichelberg
Tue, 2022-09-06, 17:28
Forum: DCMTK - Installation
Topic: Can DCMTK be built relocatable on Windows with ICU and OpenSSL?
Replies: 1
Views: 238

Re: Can DCMTK be built relocatable on Windows with ICU and OpenSSL?

On Windows, DCMTK uses a different mechanism (defined in CMake/3rdparty.cmake) to locate the external support libraries such as OpenSSL. This makes use of the CMake find_path() command, which apparently always returns an absolute path. It should not be overly difficult to add some code in that file ...
by Marco Eichelberg
Fri, 2022-08-26, 10:56
Forum: DCMTK - General
Topic: JPEG lossless Cornell images with Huffman table overflow
Replies: 1
Views: 173

Re: JPEG lossless Cornell images with Huffman table overflow

I don't think this is related to the "well-known" Cornell bug, which is an overflow in the Huffman table values that only occurs when the Cornell encoder is used for image data with more than 8 bits/sample.
by Marco Eichelberg
Wed, 2022-08-17, 14:07
Forum: DCMTK - Installation
Topic: TUTORIAL: Compile DCMTK for Apple Silicon (M1)
Replies: 1
Views: 2489

Re: TUTORIAL: Compile DCMTK for Apple Silicon (M1)

As a brief follow-up, the current development version of DCMTK available from our git repository compiles and runs on MacOS ARM "out of the box", without any modifications.
We have meanwhile integrated an M1 MacMini into our nightly build infrastructure to make sure it stays that way :wink: