Search found 1445 matches
- Thu, 2023-06-01, 16:48
- Forum: DCMTK - General
- Topic: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
- Replies: 14
- Views: 20314
Re: Does DCMTK support creating DicomImage object if the dcm file has "Photometric Interpretation" as RGB?
I have looked at the anonymized sample file, and it seems to be perfectly OK. dcm2pnm and other tools based on dcmimage can correctly process the image. This means that there must be some bug in the code that uses DicomImage. Are you taking into account that DicomImage::getOutputData() delivers a di...
- Mon, 2023-05-29, 13:05
- Forum: DCMTK - General
- Topic: convertToUTF8() Cannot select source character set
- Replies: 7
- Views: 5245
Re: convertToUTF8() Cannot select source character set
If you can get access to an anonymized sample file, we'd be interested in a copy to bugs/at/dcmtk/dot/org. I have never seen Hebrew used in an ISO 2022 multi-character set setting, so even if, as Jörg points out, the file violates the DICOM standard, I'd still be interested in checking whether we wo...
- Fri, 2023-04-28, 11:48
- Forum: DCMTK - General
- Topic: 0xa900: Error: DataSetDoesNotMatchSOPClass
- Replies: 7
- Views: 5949
Re: 0xa900: Error: DataSetDoesNotMatchSOPClass
JPEG baseline is a lossy (irreversible) compression. That means that the compressed image may not be "identical" from a medical point of view to the original one - the difference being the image quality.
In such cases DICOM requires the SOP Instance UID to be changed.
In such cases DICOM requires the SOP Instance UID to be changed.
- Fri, 2023-04-28, 11:47
- Forum: DCMTK - General
- Topic: how to add text/annotation to a dicom image
- Replies: 4
- Views: 4646
Re: how to add text/annotation to a dicom image
The overlay data should be a black/white bitmap, with one bit per pixel (equivalent to a DICOM image with Bits Allocated=1, Bits Stored=1, High Bit=0) and the same size as the main image.
- Fri, 2023-04-14, 14:10
- Forum: DCMTK - General
- Topic: CI logs with unit test executions?
- Replies: 6
- Views: 3725
Re: CI logs with unit test executions?
Correct. Our CI system is a "nightly build" of the current development branch and will overwrite the old logs after a couple of days. The logs of the build that happened to be identical to 3.6.7 release are long gone.
- Fri, 2023-04-14, 14:08
- Forum: DCMTK - General
- Topic: Issue with Reading Pixel Data using getUncompressedFrame
- Replies: 1
- Views: 2718
Re: Issue with Reading Pixel Data using getUncompressedFrame
Let's have a look: You are creating a DcmPixelData instance called "pixel_data" on the stack (for no obvious reason): DcmPixelData pixel_data = DcmPixelData(dcm_tag_pixel_data); Then you create a pointer that points to pixel_data: DcmElement* pixel_data_ptr = &pixel_data; Then you run ...
- Thu, 2023-03-23, 16:42
- Forum: DCMTK - General
- Topic: img2dcm says F: Error converting file: Not a JPEG file
- Replies: 4
- Views: 3636
Re: img2dcm says F: Error converting file: Not a JPEG file
To add to what my colleagues already said, there is no such thing as a "16 bit JPEG", unless you consider the lossless JPEG encoding that nobody outside the medical world supports. img2dcm expects an image using the Baseline lossy JPEG format (i.e. the JPEG format your camera or smart phon...
- Sat, 2023-03-11, 14:08
- Forum: DCMTK - General
- Topic: Minimal example (Linux) application using DCMTK with linking errors
- Replies: 16
- Views: 6477
Re: Minimal example (Linux) application using DCMTK with linking errors
Yes, this is possible. libxml2, which is used by some DCMTK tools, can be compiled with character set conversion support based on GNU iconv or ICU. In that case linking against libxml2 causes the dependency on ICU.
- Tue, 2023-03-07, 14:32
- Forum: DCMTK - General
- Topic: Minimal example (Linux) application using DCMTK with linking errors
- Replies: 16
- Views: 6477
Re: Minimal example (Linux) application using DCMTK with linking errors
DCMTK_PORTABLE_LINUX_BINARIES tries to create portable Linux binaries by linking all libraries statically, with the exception of glibc, which is linked dynamically. Glibc cannot be linked statically in a portable manner since the library will load additional shared objects at runtime, and this is li...
- Mon, 2023-03-06, 09:31
- Forum: DCMTK - General
- Topic: Findscu.exe: reading from a file?
- Replies: 3
- Views: 2996
Re: Findscu.exe: reading from a file?
Yes, that is correct. Wildcard expansion works differently on Windows.
- Fri, 2023-03-03, 12:05
- Forum: DCMTK - General
- Topic: Findscu.exe: reading from a file?
- Replies: 3
- Views: 2996
Re: Findscu.exe: reading from a file?
Yes, that is possible. All DCMTK tools can read the options from a command file instead of the command line. Just specify the name of the command line with a leading '@': findscu @commands.txt The file 'commands.txt' should be a simple text file that contains the command line options, separated by s...
- Wed, 2023-03-01, 18:14
- Forum: DCMTK - Installation
- Topic: dcmjpls.lib : possible defect in the configuration tool?
- Replies: 1
- Views: 3992
Re: dcmjpls.lib : possible defect in the configuration tool?
The files in the libcharls folder are compiled into a separate library, named "libdcmtkcharls.a" on Linux, and "dcmtkcharls.lib" on Windows. You need to link against this library whenever you link against the static libdcmjpls library. DLLs automatically contain this dependency, ...
- Wed, 2023-03-01, 17:58
- Forum: DCMTK - Installation
- Topic: 3.6.7 : Problem with linking JpegLS static library on Windows
- Replies: 3
- Views: 4622
Re: 3.6.7 : Problem with linking JpegLS static library on Windows
You are compiling without OpenSSL support. In that case, the dcmsign library is empty.artemmikheev wrote: ↑Sun, 2023-02-26, 16:26 BTW, what happened to dcmsign.lib? The project for it is present in the source code, but when CMAKE generated the whole solution, the dcmsign project is missing from the solution.
- Tue, 2023-02-07, 09:07
- Forum: DCMTK - General
- Topic: 0xa900: Error: Refused - Data Set does not match SOP Class
- Replies: 11
- Views: 8999
Re: 0xa900: Error: Refused - Data Set does not match SOP Class
My guess would be an incorrect presentation context ID used in the C-STORE-RQ message. Unfortunately, the dump output of our tools does not print this ID - perhaps something we should change.
- Thu, 2023-02-02, 09:47
- Forum: DCMTK - General
- Topic: Slow Dicom->BMP rendering
- Replies: 4
- Views: 1651
Re: Slow Dicom->BMP rendering
Well, the reason why JPEG 2000 has never achieved widespread usage is the fact that the compression algorithm requires much more memory and time than, for example, classic JPEG. So in comparison to JPEG, JPEG 2000 will always be slow, and there is no way to avoid that. Of course there are faster and...