Search found 1471 matches

by Marco Eichelberg
Tue, 2024-07-02, 16:51
Forum: DCMJP2K
Topic: How to do Per frame jpeg2000 encoding?
Replies: 2
Views: 215

Re: How to do Per frame jpeg2000 encoding?

We are actually talking about JPEG 2000 decoding here, which is good, because per-frame encoding is not supported in DCMTK, while per-frame decoding is. Loading the file with DcmFileFormat::loadFile() is a "lazy" operation that will leave the compressed pixel data in the file until it is a...
by Marco Eichelberg
Sat, 2024-06-29, 18:19
Forum: DCMTK - Installation
Topic: Self built OpenSSL version 3.0.8 names
Replies: 16
Views: 373

Re: Self built OpenSSL version 3.0.8 names

When building the OpenSSL library, the library files will be named "libcrypto" and "libssl". We rename these in
our support library build to avoid the situation where a different application installs these DLLs in an
incompatible version and our binaries then load the wrong DLL.
by Marco Eichelberg
Sat, 2024-06-29, 18:12
Forum: DCMTK - Installation
Topic: Self built OpenSSL version 3.0.8 names
Replies: 16
Views: 373

Re: Self built OpenSSL version 3.0.8 names

I cannot say what "nmake install" will do. We never use that, but manually copy the files needed by DCMTK into the directory structure that you find in our pre-compiled libraries (actually, nowadays there is a build script for that, but I used to do it manually for years. It's not that dif...
by Marco Eichelberg
Sat, 2024-06-29, 18:08
Forum: DCMTK - Installation
Topic: Changing version of OpenSSL for an already configured build system
Replies: 9
Views: 205

Re: Changing version of OpenSSL for an already configured build system

The header and library files should be sufficient for DCMTK's configure tests. Make sure to create a new build directory since DCMTK will not notice that some header files have changed and some configure tests now may have different outcome. This has been tested and works with DCMTK 3.6.8 and OpenSS...
by Marco Eichelberg
Tue, 2024-06-25, 13:54
Forum: DCMTK - Installation
Topic: Warning after switching to use environment variables
Replies: 7
Views: 208

Re: Warning after switching to use environment variables

To my knowlege, setting set(CMAKE_SUPPRESS_REGENERATION true) should suppress the generation of the ZERO_CHECK target, which might be preferrable over manually tinkering with the list of build targets in the solution file.
by Marco Eichelberg
Tue, 2024-06-25, 13:51
Forum: DCMTK - Installation
Topic: Is there a way to select x64 and Win32?
Replies: 5
Views: 142

Re: Is there a way to select x64 and Win32?

Yes. If you select a Visual Studio version as a generator, the dialog will display a selection list named "optional platform for generator". There you can select Win32, x64, and some ARM varieties.
by Marco Eichelberg
Mon, 2024-06-24, 10:47
Forum: DCMTK - Installation
Topic: howto_cmakeconfiguration is outdated
Replies: 2
Views: 125

Re: howto_cmakeconfiguration is outdated

Thank you for pointing this out. I just updated the page to show the versions of Visual Studio supported in the current version (2015 to 2022).
by Marco Eichelberg
Mon, 2024-06-24, 10:43
Forum: DCMTK - Installation
Topic: Where is the documentation for the CMake DCMTK_WITH options?
Replies: 9
Views: 210

Re: Where is the documentation for the CMake DCMTK_WITH options?

In essence, it's cmake [options] -S <path-to-source> -B <path-to-build>. <path-to-source> should be the directory into which the developed has cloned the Git repository, <path-to-build> the directory into which the Visual Studio files will be written.
by Marco Eichelberg
Mon, 2024-06-24, 10:40
Forum: DCMTK - Installation
Topic: Visual Studio/MS Windows build system generation
Replies: 4
Views: 151

Re: Visual Studio/MS Windows build system generation

Can we use CMake during an automated build process? Yes, definitely. We do this in our automated nightly builds. If you run cmake.exe with the required command line options (selecting compiler, build options, source directory etc.), the tool will display no GUI. It will just generate the Visual Stu...
by Marco Eichelberg
Sun, 2024-06-16, 06:31
Forum: DCMTK - Installation
Topic: Pre-built DCMTK libraries and header files
Replies: 3
Views: 219

Re: Pre-built DCMTK libraries and header files

We don't provide pre-built DCMTK libraries for Visual Studio. Compiling that by yourself should be easy enough.
by Marco Eichelberg
Mon, 2024-06-10, 15:36
Forum: DCMTK - General
Topic: Secure Connections with DCMTK
Replies: 6
Views: 535

Re: Secure Connections with DCMTK

It would be nice if we just turned on TLS with a preprocessing value set to true and then have the code inject the TLS layer instead of having to do it ourselves. It is certainly possible to make the code nicer. The TLS support was developed as an add-on years after the network module, which in par...
by Marco Eichelberg
Mon, 2024-06-10, 15:32
Forum: DCMTK - General
Topic: dcmPreferVRFromDataDictionary and EVR_ox
Replies: 12
Views: 462

Re: dcmPreferVRFromDataDictionary and EVR_ox

EVR_ox is used for attributes that may be either OB or OW in DICOM, such as WaveformData. The DCMTK parser actually looks at the value of WaveformBitsAllocated to determine whether OB or OW should be used. You can either force WaveformData to OW by calling setVR(EVR_OW), or access the value with get...
by Marco Eichelberg
Sat, 2024-06-01, 17:36
Forum: DCMTK - General
Topic: Specific Character set issue
Replies: 11
Views: 1427

Re: Specific Character set issue

convertToUTF8() should be able to convert all valid DICOM character sets to UTF-8 when using the oficonv library.
When using GNU libiconv and ICU, only a subset of character sets is supported. In particular, the ICU-based implementation in DCMTK will not support the character sets for Japanese.
by Marco Eichelberg
Sat, 2024-06-01, 17:33
Forum: DCMTK - General
Topic: Specific Character set issue
Replies: 11
Views: 1427

Re: Specific Character set issue

How to get the SpecificCharacterSet from dataset if multiple exists and if two values is present which one is need to consider the first one This is explained in detail in DICOM Part 5. In brief: Every attribute value that is subject to specific character set (e.g. attributes of the value represent...
by Marco Eichelberg
Wed, 2024-05-29, 10:08
Forum: DCMTK - General
Topic: Specific Character set issue
Replies: 11
Views: 1427

Re: Specific Character set issue

The underlying code in DCMTK should handle this case just fine. No special handling needed if you want to convert that to UTF-8 (ISO_IR 192). Note, however, that the other direction, i.e. conversion of Unicode into more than one target character set, is not supported in DCMTK.