Search found 2503 matches

by J. Riesmeier
Tue, 2023-05-30, 20:42
Forum: DCMTK - General
Topic: dcmcjpeg quality parameter
Replies: 11
Views: 8958

Re: dcmcjpeg quality parameter

If the PACS does not accept uncompressed Pixel Data with a VR of OW or does not accept ILE (if proposed by the SCU, and there is no other option for the respective SOP Class), it would violate the DICOM standard. To the OP: Do you have a log of the network negotiation? By the way, do you use DCMTK's...
by J. Riesmeier
Tue, 2023-05-30, 19:09
Forum: DCMTK - General
Topic: convertToUTF8() Cannot select source character set
Replies: 7
Views: 4730

Re: convertToUTF8() Cannot select source character set

You could first try with "\ISO 2022 IR 138" and see whether it works. It's also possible that the creator actually used "ISO_IR 138" (no code extension techniques, i.e. no ESC sequences).
by J. Riesmeier
Tue, 2023-05-30, 18:58
Forum: DCMTK - General
Topic: dcmcjpeg quality parameter
Replies: 11
Views: 8958

Re: dcmcjpeg quality parameter

One thing we noticed was an error message from another validator stating "Pixel Data has a VR 'OW'. The VR 'OB' would have been more relevant since Bits Allocated is less or equal to 8". If the Pixel Data is uncompressed, a VR of OW would also be appropriate for Bits Allocated = 8 (see DI...
by J. Riesmeier
Tue, 2023-05-30, 10:28
Forum: DCMTK - General
Topic: "Private" UIDs
Replies: 7
Views: 4736

Re: "Private" UIDs

Instead I would propose to use ".9" as a suffix to SITE_UID_ROOT for the before-mentioned "private" usage. Today, I discussed this with the team. We will make sure that the ".9" UIDs will never be used/generated by the DCMTK. An appropriate comment will be added to &qu...
by J. Riesmeier
Tue, 2023-05-30, 07:45
Forum: DCMTK - General
Topic: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
Replies: 14
Views: 18256

Re: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?

By default, dcm2pnm creates PGM/PPM images as output. For the PNG format, you need to specify option --write-png (+on). See documentation for details.
by J. Riesmeier
Mon, 2023-05-29, 13:11
Forum: DCMTK - General
Topic: convertToUTF8() Cannot select source character set
Replies: 7
Views: 4730

Re: convertToUTF8() Cannot select source character set

In my opinion, workarounds for invalid values for the Specific Character Set (0008,0005) attribute should be implemented at application level and not in a general DICOM toolkit like DCMTK. This is because, how should one know which value was actually intended by the creator.
by J. Riesmeier
Mon, 2023-05-29, 12:49
Forum: DCMTK - General
Topic: convertToUTF8() Cannot select source character set
Replies: 7
Views: 4730

Re: convertToUTF8() Cannot select source character set

DICOM PS3.3 Section C.12.1.1.2 says: "If the Attribute Specific Character Set (0008,0005) is not present or has only a single value, Code Extension techniques are not used." "Defined Terms for Single-Byte Character Sets without Code Extensions" can be found in Table C.12-2 . A si...
by J. Riesmeier
Mon, 2023-05-29, 12:15
Forum: DCMTK - General
Topic: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
Replies: 14
Views: 18256

Re: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?

You could send the files by email to bugs/at/dcmtk/dot/org.

Of course, when you download the source code package, dcm2pnm is provided as a source file. You could either compile and link the DCMTK or you could download pre-compiled binaries, e.g. here: https://dcmtk.org/en/dcmtk/dcmtk-tools/
by J. Riesmeier
Fri, 2023-05-26, 16:38
Forum: DCMTK - General
Topic: convertToUTF8() Cannot select source character set
Replies: 7
Views: 4730

Re: convertToUTF8() Cannot select source character set

Does the Specific Character Set (0008,0005) attribute of the dataset contain only one value, namely "ISO 2022 IR 138"?
by J. Riesmeier
Fri, 2023-05-26, 13:30
Forum: DCMTK - General
Topic: Memory Mapped file support
Replies: 7
Views: 5279

Re: Memory Mapped file support

I mean you could derive a subclass from DcmPixelItem which stores information on how to retrieve the pixel data for the particular tile from the source, but only creates the byte stream when needed (i.e. on demand), which is when it is transferred over the network (or written to file). This is the s...
by J. Riesmeier
Fri, 2023-05-26, 08:37
Forum: DCMTK - General
Topic: Memory Mapped file support
Replies: 7
Views: 5279

Re: Memory Mapped file support

If all data should reside in main memory, using the "create tile pixel data on demand" would be my first choice.
by J. Riesmeier
Wed, 2023-05-24, 19:52
Forum: DCMTK - General
Topic: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
Replies: 14
Views: 18256

Re: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?

You could upload the PNG images to another public server and add links to your posting.

By the way, what is the output of the dcm2pnm tool for this particular DICOM image?
by J. Riesmeier
Wed, 2023-05-24, 08:54
Forum: DCMTK - General
Topic: Memory Mapped file support
Replies: 7
Views: 5279

Re: Memory Mapped file support

To the OP: Since WSI objects are typically stored as compressed multi-frame images where each frame represents a tile of the entire images, you could use the createValueFromTempFile() method to specify the pixel data for each tile individually. Alternatively, you could create the pixel data of the t...
by J. Riesmeier
Mon, 2023-05-22, 08:43
Forum: DCMRT
Topic: Invalid item in loop over sequences
Replies: 7
Views: 6783

Re: Invalid item in loop over sequences

The reported issue has been fixed in the current development version (see git repository). I've also updated the automatically generated classed to DICOM 2023b.
by J. Riesmeier
Fri, 2023-05-19, 21:59
Forum: DCMTK - General
Topic: "Private" UIDs
Replies: 7
Views: 4736

Re: "Private" UIDs

I don't think that we should replace the #defines with global variables. In my opinion, global variables are usually the worst solution. Also, I don't think that anyone who has its own organization root (UID prefix) will use precompiled binaries/libraries. At least, in my estimation, this is rather ...