Search found 2329 matches

by J. Riesmeier
Mon, 2021-11-29, 20:14
Forum: DCMTK - General
Topic: Inconsistency with findAndGetUint16Array
Replies: 8
Views: 234

Re: Inconsistency with findAndGetUint16Array

Thank you for your feedback. In the meantime, I've committed the required changes and pushed them to the public git repository.
by J. Riesmeier
Thu, 2021-11-18, 11:04
Forum: DCMTK - General
Topic: OpenSSL 3.0.0
Replies: 6
Views: 267

Re: OpenSSL 3.0.0

Hi Amal, the changes have now been pushed to the public git repository (see http://git.dcmtk.org/).
by J. Riesmeier
Thu, 2021-11-18, 10:58
Forum: DCMTK - General
Topic: How to over-write a modified DICOM file?
Replies: 4
Views: 481

Re: How to over-write a modified DICOM file?

The element value is loaded on demand from the input file. The same is true when the value is accessed via one of the getXXX() methods.
Of course, loading the element values from the input file does not work if the input file is overwritten by the output file.
by J. Riesmeier
Wed, 2021-11-17, 17:32
Forum: DCMTK - General
Topic: OpenSSL 3.0.0
Replies: 6
Views: 267

Re: OpenSSL 3.0.0

Actually, our internal "testing" branch already supports OpenSSL 3.0.0. The required changes should be visible in the public git branch ("master") pretty soon.
by J. Riesmeier
Fri, 2021-11-12, 13:15
Forum: DCMTK - General
Topic: dcmodify vs. "ISO_IR 192" character set
Replies: 8
Views: 3006

Re: dcmodify vs. "ISO_IR 192" character set

You could e.g. create a so-called command file that contains all modifications, e.g. a "modify.txt" with the following contents (encoded as UTF-8): -i SpecificCharacterSet="ISO_IR 192" -m PatientName="Riesmeier^Jörg" -m PatientID=0815 -i PatientComments="Some Comment" ... And then call "dcmodify -v ...
by J. Riesmeier
Fri, 2021-11-12, 12:52
Forum: DCMTK - General
Topic: Inconsistency with findAndGetUint16Array
Replies: 8
Views: 234

Re: Inconsistency with findAndGetUint16Array

Could you please check the following patch: --- a/dcmdata/libsrc/dcitem.cc +++ b/dcmdata/libsrc/dcitem.cc @@ -2555,10 +2555,8 @@ OFCondition DcmItem::findAndGetUint16Array(const DcmTagKey& tagKey, { if (status.good()) { - *count = elem->getNumberOfValues(); - /* AT uses two 16-bit integers per value...
by J. Riesmeier
Fri, 2021-11-12, 09:26
Forum: DCMTK - General
Topic: Need advice concerning PACS development using DCMTK
Replies: 2
Views: 194

Re: Need advice concerning PACS development using DCMTK

Welcome to the DCMTK forum!

May I ask what the background of your question is? The development of a PACS can mean everything from a small and self-contained project to a very huge task.
by J. Riesmeier
Thu, 2021-11-11, 20:55
Forum: DCMTK - General
Topic: Inconsistency with findAndGetUint16Array
Replies: 8
Views: 234

Re: Inconsistency with findAndGetUint16Array

Well, internally PixelData is managed by a "polymorph OB/OW" class, so there is an implicit conversion between both encodings.
by J. Riesmeier
Thu, 2021-11-11, 18:25
Forum: DCMTK - General
Topic: OpenSSL 3.0.0
Replies: 6
Views: 267

Re: OpenSSL 3.0.0

With "official dcmtk version" you mean those that can be downloaded from www.dcmtk.org or dicom.offis.de?
OFFIS only provides "official" binaries when a new version of source code is released. The next release is planned for beginning of next year.
by J. Riesmeier
Thu, 2021-11-11, 18:19
Forum: DCMTK - General
Topic: dcmodify vs. "ISO_IR 192" character set
Replies: 8
Views: 3006

Re: dcmodify vs. "ISO_IR 192" character set

You could also try with "-if file.txt", where file.txt contains the UTF-8 encoded string of characters.
By the way, there is no need to prefix the hex numbers with "0x".

In my bash (Linux shell), it works out of the box since the local encoding is set to UTF-8. Windows is always something special...
by J. Riesmeier
Thu, 2021-11-11, 09:27
Forum: DCMTK - General
Topic: Inconsistency with findAndGetUint16Array
Replies: 8
Views: 234

Re: Inconsistency with findAndGetUint16Array

According to the DICOM standard, a value of BitsStored=16 (and BitsAllocated >= 16) is not allowed for PixelData with a VR of "OB" (see PS3.5 Section 8.2). That means, the DICOM dataset is invalid. Also, DcmItem::findAndGetUint16Array() is not applicable to "OB" data (see API documentation). However...
by J. Riesmeier
Wed, 2021-11-10, 19:30
Forum: DCMTK - General
Topic: Inconsistency with findAndGetUint16Array
Replies: 8
Views: 234

Re: Inconsistency with findAndGetUint16Array

Two questions: Which version of the DCMTK did you use? What is the VR of the PixelData element?
by J. Riesmeier
Fri, 2021-10-22, 15:03
Forum: DCMTK - General
Topic: storescu error
Replies: 7
Views: 1080

Re: storescu error

No, but this functionality can certainly be added by a script around dcmsend.
by J. Riesmeier
Fri, 2021-10-08, 06:46
Forum: DCMTK - General
Topic: CR image is not shown good after convert to JPG
Replies: 4
Views: 418

Re: CR image is not shown good after convert to JPG

No, this has nothing to do with Presentation LUT Shape or Photometric Interpretation: the image is not inverted.

Please try again with the following VOI setting: +Ww 12000 10000
by J. Riesmeier
Wed, 2021-10-06, 21:02
Forum: DCMTK - General
Topic: CR image is not shown good after convert to JPG
Replies: 4
Views: 418

Re: CR image is not shown good after convert to JPG

Did you already try to specify a more appropriate VOI LUT transformation (e.g. Window Center/Width) than the one stored in the DICOM dataset?