Search found 2048 matches

by Michael Onken
Fri, 2024-03-08, 09:07
Forum: DCMTK - General
Topic: lossless
Replies: 3
Views: 88

Re: lossless

Dear George, For a a different problem, please open a different thread please (next time). Regarding the file: Again it looks like you have not done any analysis yourself and did not look at what I answered earlier. The given file is *not* decompressed but compressed with JPEG 2000 (easy to spot by ...
by Michael Onken
Wed, 2024-03-06, 17:31
Forum: DCMTK - General
Topic: lossless
Replies: 3
Views: 88

Re: lossless

img2dcm does not apply any compression or decompression, it uses the input pixel data mostly as is.
DicomImage only uses decompression if the related decompression codecs have been registered. See dcm2pnm.cc for an example.

BR Michael
by Michael Onken
Wed, 2024-03-06, 15:33
Forum: DCMTK - General
Topic: jpeg200 not identified
Replies: 1
Views: 33

Re: jpeg200 not identified

dataset->findAndGetString(DCM_TransferSyntaxUID, transferSyntax).good(); The transfer syntax is not part of the Dataset but is part of the metaheader. I did not check the rest of the code carefully. Use instead: DcmMetaInfo *dataset = fileFormat.getMetaInfo(); George, please also put some effort in...
by Michael Onken
Tue, 2024-03-05, 21:47
Forum: DCMTK - General
Topic: PhotometricInterpretation lost
Replies: 6
Views: 139

Re: PhotometricInterpretation lost

I guess this is the same questions as in this thread (answered there), please don't cross-post your questions.
Michael
by Michael Onken
Tue, 2024-03-05, 21:46
Forum: DCMTK - General
Topic: unable to restore photo quality
Replies: 2
Views: 76

Re: unable to restore photo quality

It depends on the input image parameters. E.g. if Bits Stored is > 8 in the input image, and you force the image to be rendered into RGB data with 8 bit per channel (BMP), you loose information. There can also be other relevant parameters. Also there may be some typical "gotchas" that one ...
by Michael Onken
Thu, 2024-02-29, 11:04
Forum: DCMTK - General
Topic: PhotometricInterpretation lost
Replies: 6
Views: 139

Re: PhotometricInterpretation lost

Hi George,

what do you mean, what is your expectation on how Photometric Intepretation should be handled and what happened instead? What "all other tags"?

BR Michael
by Michael Onken
Fri, 2024-01-12, 11:14
Forum: DCMTK - General
Topic: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS
Replies: 5
Views: 5226

Re: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

Can't tell.... :roll:
Try DCMTK 3.6.8 to make sure it's not something we have fixed -- if its a DCMTK issue.
by Michael Onken
Thu, 2024-01-11, 13:39
Forum: DCMTK - General
Topic: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS
Replies: 5
Views: 5226

Re: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

Hi, I don't know of any problems, maybe you can did not completely recompile? You could check in the debugger to find out what exactly causes the crash. 3.6.7 has originally been tested on MacOS X 10.15 (amd64|x86_64) using Apple Clang 11.0.0 and GNU gcc 9.2.0. Note that we released 3.6.8 a few days...
by Michael Onken
Thu, 2024-01-04, 13:10
Forum: DCMTK - General
Topic: dicom creation
Replies: 1
Views: 8328

Re: dicom creation

Hi,

I only understand half of the questions. To see how to create a DICOM file from regular images like BMP, see the tool (and its source code) img2dcm.
You can dump the content of a file using the tool dcmdump.

BR,
Michael
by Michael Onken
Thu, 2024-01-04, 13:09
Forum: DCMTK - General
Topic: MDFCONEN_H
Replies: 1
Views: 6577

Re: MDFCONEN_H

It is used (only) by dcmodify, so you can check out the link libraries used by dcmodify.

Best,
Michael
by Michael Onken
Sat, 2023-12-23, 18:12
Forum: DCMTK - General
Topic: File Size
Replies: 5
Views: 16554

Re: File Size

The img2dcm tool can create DICOM files from BMP images. The source code demonstrates how to use the library for that.

Best,
Michael
by Michael Onken
Tue, 2023-12-19, 10:15
Forum: DCMTK - General
Topic: File Size
Replies: 5
Views: 16554

Re: File Size

I think BMP supports some compression extensions, maybe your BMP file(s) have been compressed. There is no way to make the pixel data in DICOM smaller than what you have using uncompressed transfer syntaxes. You can try ZIP compression (dcmconv +td <input> <output>), or RLE compression (dcmcrle <inp...
by Michael Onken
Mon, 2023-12-18, 13:01
Forum: DCMTK - General
Topic: File Size
Replies: 5
Views: 16554

Re: File Size

Hi George, george_z@dckr-build:~/dicom$ ll -h converted_cre_img.dcm -rw-rw-r-- 1 george_z george_z 8.2M Dec 18 11:14 converted_cre_img.dcm george_z@dckr-build:~/dicom$ ll -h cre_img.dcm -rw-rw-r-- 1 george_z george_z 8.2M Dec 17 08:49 cre_img.dcm This makes sense to me. What are you expecting to see...
by Michael Onken
Mon, 2023-12-18, 11:38
Forum: DCMTK - General
Topic: memory leak while encoding
Replies: 12
Views: 77502

Re: memory leak while encoding

Hi,

give me some time to check this again using the file you provided. Note that the posting of user "hana" was probably automatically generated (as well as other responses by the user) and thus we removed it. The answer did not making sense at all.

BR Michael
by Michael Onken
Wed, 2023-12-13, 10:59
Forum: DCMTK - General
Topic: memory leak while encoding
Replies: 12
Views: 77502

Re: memory leak while encoding

Ok, here is my result of further investigation: I tried on Windows (Win 10, VS 2022, 64 bit build) and Linux (Ubuntu 23, gcc 13.2.0, 64 bit build ). On Linux the leak checker still reports, that no memory leaks are possible . I value this very high since valgrind is 100% reliable in my experience an...