DCMTK | WARNING : This is NOT the official upstream DCMTK git
kandi X-RAY | DCMTK Summary
kandi X-RAY | DCMTK Summary
This project is NOT the official upstream DCMTK git repository.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DCMTK
DCMTK Key Features
DCMTK Examples and Code Snippets
Community Discussions
Trending Discussions on DCMTK
QUESTION
I have a DICOM study with 3 series and want to refresh its UIDs (StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID) to do some tests. All the data is in a single directory so it's not possible to tell which DICOM belongs to which series.
What I have tried is using dcmodify (dcmtk) with some generate options :
...ANSWER
Answered 2022-Mar-02 at 08:42-gst -gse and -gin
QUESTION
I have a custom Docker build of nginx and php-fpm that I am pretty sure was working until recently. I am now getting the error mentioned above during a build using the DockerFile below when using 8.0-fpm, but not with 8.1.1-fpm-bullseye, although there are some other issues with using 8.1.1 in some of the PHP code (deprecations and warnings).
...ANSWER
Answered 2022-Feb-12 at 01:56PHP 8.0.15
and 8.1.2
has a bug which is breaks compile sockets
extension.
You have a two options:
- Skip this versions.
- Apply a workaround to bypass bug and build
sockets
extenstension.
Source:
QUESTION
I am running Orthanc Server using docker-compose file and attempting to connect to DICOM Server using TLS connection.More details here https://groups.google.com/g/orthanc-users/c/6gNCOVwTc6c. I downloaded the source code from github for dcmtk 3.6.6 (https://github.com/DCMTK/dcmtk). Followed the instruction for build and built dcmtk 3.6.6 on my debian 10 system. I added the "dcmtk-3.6.6-install/usr/local/bin/" folder to PATH using export PATH command.
After that I attempted to connect to the docker container using the command echoscu -v -aet ORTHANCA localhost 4242 +tls orthanc-a-server-key.pem orthanc-a-server-crt.pem +cf trusted-crt.pem
.
I received the following error log:
ANSWER
Answered 2022-Feb-09 at 05:31Your DICOM dictionary is not found, meaning that probably something in the build/installation went wrong.
There are 2 possibilities to include the DICOM dictionary:
- compile it into the library (default under Windows)
- install it and point the environment variable
DCMDICTPATH
to its location (default under Posix)
From the documentation:
The built-in approach offers the advantage that a binary will not have to load any information from a separate file which may get lost or or used in an outdated version. Loading the dictionary content from a separate file, however, has the advantage that application programs need not be recompiled if additions or corrections are made to the data dictionary.
The related information can be found in the dcmtk sources under dcmdata/docs/datadict.txt
, there is also an online version of the file.
In short, for non-Windows systems:
To compile the dictionary into the library:
- with autoconf, use the options
--enable-builtin-dict
and--disable-external-dict
- with CMake, use
DCMTK_ENABLE_BUILTIN_DICTIONARY
To use the separate dictionary:
use the default build options and make sure that use the
install-libs
option; in this casedicom.dic
will be installed into the default location (under) and should be found; for this, you should call "make install" and specify the installation path during "configure" (aka as "--prefix") if needed
if you want to use your own dictionary, or for some reason want to move the dictionary elsewhere, you have to set
DCMDICTPATH
to the location of that dictionary, e.g.:
QUESTION
I'm trying to read a number of Siemens DICOM images with DCMTK, some of which are mosaic images. I'm looking for a quick way to find those.
What I can see with mosaic images is that this is specified in the ImageType tag, e.g.
...ANSWER
Answered 2022-Jan-26 at 11:17Image Type (0008,0008) is a multi-valued attribute. That is, it may include several values which are separated by the backslash character. Note, that "officially", the backslash is not part of the attribute's value. It is a delimiter between several values of the attribute. This is what you have. So in terms of DICOM, there is no "one value" but multiple ones. The DCMTK API allows you to handle this (of course).
findAndGetOFString() has a third parameter ("index") to define which of the multiple values you want to obtain.
The behavior that you probably expect is what findAndGetOFStringArray() does.
As an alternative, you could iterate through the multiple values of the attribute by obtaining the "Value Multiplicity" first and then loop through the values like
QUESTION
I was wondering if anyone could help me with this problem that has been plaguing me.
I am currently using Qt Creator with verion 5.11.3 Qt on Ubuntu to build a project. Every time I try to build I get the error "gl.h: No such file or directory".
The error occurs next to the line in my code that says "#include
I have ran the following code as well and it did not change the outcome
...ANSWER
Answered 2021-Jul-26 at 18:58Install the OpenGL dev support:
QUESTION
I am very confused about the DCMTK > 3.6.0 logging mechanism oflog/log4cplus
I simply need my code to specify the logname for dcmtk to log into. How is that done ?
Thanks!
...ANSWER
Answered 2021-May-07 at 08:51The answer can be found in DCMTK's "logger howto": https://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_LogProgram#Redirecting-log-output-to-a-file
QUESTION
I am confused about the role of SOP Class UID in QR Query C-Find.
In the C-Find request can I have SOP Class UID (0008,0016) empty?
In that case, supposed the query was on the IMAGE level, should that field be then populated in each response with the SOP Class UID of that image?
My experience with DCMTK is that it does not populate that field in C-Find response. But I am not sure if this is according to the standard, or a problem in DCMTK or elsewhere in my code which uses DCMTK QR.
...ANSWER
Answered 2021-Mar-01 at 15:27The SOP Instance UID is a mandatory return key for the Query SCP in an IMAGE-Level request. It must not be present in any request on any other level (PATIENT, STUDY, SERIES). The SOP Class UID is optional, but it is usually supported by an SCP. In many places in the Standard SOP Class- and Instance UID form a pair that uniquely identifies the object, and here the SOP Class UID is a required attribute. So not supporting it would significantly reduce the use scenarios for the SCP.
Since the background of querying for SOP Instance UID is usually: "Please give me a list of images belonging to this particular patient, study and series", it is very common to send it empty with the request. This instructs the SCP to fill in this attribute in its responses.
QUESTION
I am desperately trying, as a CMake newbie to get DCMTK to do stuff. The example I am trying to compile and run is the following:
...ANSWER
Answered 2021-Mar-04 at 20:19DCMTK sadly does not provide correctly exported CMake targets, so you will have to patch around that. I installed DCMTK via vcpkg and was able to compile your code with this build (after replacing COUT
with std::cout
and including iostream
):
QUESTION
My program, for a Ubuntu 20 system using DCMTK 3.6.4-2, reads a dicom file (series) and gets the scale slopes from the corresponding tags, testing first whether they exist:
...ANSWER
Answered 2021-Feb-26 at 17:02The tag you are looking for is inside a sequence (RealWorldValueMappingSequence
). To get to the tag, you first have to get the sequence, something like this:
QUESTION
Using DCMTK, I am trying to get the entire node of Content Sequence of .dcm SR files to extract measurements related to obstetrical scans. I use C-Find query. I am able to get the entire Content Sequence with Toshiba ultrasound machine but not with other brands. I don't think that this is a brand issue but the way I have set up the C-Find process. I am very new to this and am struggling to resolve the issue. I have included 2 log files below: one for the working case that successfully gets the entire node of Content Sequence tag, and another log for the non-working case that stops the process with an error "DIMSE Status: 0xc000: Error: Failed - Unable to process error". I appreciate any help or your insightful advice.
This the log for the non-working query
...ANSWER
Answered 2021-Feb-26 at 06:41Your requests only differ in that your non-working query queries for a different patient ID.
An obvious mistake in both queries is that for a SERIES-level request in STUDY-ROOT, you must not include a value for the Patient ID, but for the Study Instance UID. This is wrong in terms of DICOM, but Orthanc seems to be capable of handling it in general. This is however the only hint that I can obtain from your logs, so I would give it a try.
Please note, that the Content Sequence is not a mandatory Return Key for the C-FIND, so you can never rely on the SCP supporting it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DCMTK
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page