Questions tagged [dcmtk]

DCMTK is a collection of libraries and applications implementing large parts the DICOM standard.

DCMTK is a collection of open source libraries and applications implementing large parts the DICOM standard.

It includes software for examining, constructing and converting DICOM image files, handling offline media, sending and receiving images over a network connection, as well as demonstrative image storage and worklist servers.

DCMTK is is written in a mixture of ANSI C and C++. and can be compiled under Windows and a wide range of Unix operating systems including Linux, Solaris, HP-UX, IRIX, FreeBSD, OpenBSD and MacOS X.

Related tags:

,

143 questions
2
votes
0 answers

How to resolve LNK2019 error in Visual Studio when using Qt and DCMTK libraries?

I know this question has been asked a lot of times already but I'm sorry, I just can't figure out what is wrong with what I've been doing. What I want is to read a DICOM image (by pixel because I have to perform operations on it) and display it on a…
noobalert
  • 855
  • 3
  • 10
  • 24
2
votes
1 answer

How to handle (i.e Read/Write) private DICOM Tags using DCMTK

With respect to handling private tags in DICOM. Could any one give me the coding examples for below : 1. Writing the private tags fixed attribute tag. 2. Similarly examples for reading the private tags. Note : Some times private tags are getting…
user2844265
  • 39
  • 2
  • 9
2
votes
3 answers

creating a new DICOM file from existing DICOM file using DCMTK

I am trying to create a new DICOM file from an existing DICOM file. So, the scenario is that I have a DICOM file and I do some image processing on it and produce a transformed/processed file and I would like to save it using the original file as a…
Luca
  • 10,458
  • 24
  • 107
  • 234
2
votes
2 answers

Linking the libraries for Dcmtk based c++ program?

I'm trying to understand how to program based on Dcmtk libraries. I'm pretty new and naive in C++ programming(I have learned the basics of C++ and understand them) so it might just be an easy question for you guys. I have found this following code,…
the_naive
  • 2,936
  • 6
  • 39
  • 68
1
vote
3 answers

How to compile DCMTK on iOS for the first time?

I am going to work on DICOM images, so I need DCMTK to be compiled/installed in iOS.
1
vote
1 answer

finding the size of an item in a Siemens DICOM tag

I am tryying to read a multi-slice (Mosaic) DICOM image from a Siemens scanner in C++, using DCMTK to read the tag and information on the nibabel pages. As I understand, Mosaic images have a CSA header and after 8 bytes (CSA1) or 16 bytes (CSA2),…
alle_meije
  • 2,424
  • 1
  • 19
  • 40
1
vote
1 answer

showing the full content of ImageType in DCMTK

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. $ dcmdump ${im0} |…
alle_meije
  • 2,424
  • 1
  • 19
  • 40
1
vote
1 answer

Problem reading the Content Sequence tag of DICOM file using DCMTK

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…
DORI
  • 54
  • 1
  • 8
1
vote
0 answers

Include dcmtk header files after WSL ubuntu installation using apt-get install

this is a silly question, but I'm having trouble including DCMTK to use in a script after installing it on Ubuntu running on a windows computer using the WSL platform. SOLUTION: I had a lot of trouble installing dcmtk and using the headers. It…
John Doe
  • 11
  • 4
1
vote
1 answer

How to filter out elements with a particular property (or keep elements without that property)

I'm processing the output from dcm2json, which converts the metadata from medical imaging data in the DICOM format to JSON. The values for this metadata is mostly strings, integers, floats, and similar, but it also includes inline binary values in…
Spanky Quigman
  • 870
  • 7
  • 16
1
vote
1 answer

DCMTK: min-max-window vs min-max-window-n vs histogram-window

I'd like to convert a set of DICOM instances (CT, MR, X-Ray basically) to JPEG (regular 8bits lossy grayscale). I have been starring at the options from dcmj2pnm: dcmj2pnm: Convert DICOM images to PGM/PPM, PNG, TIFF, JPEG or BMP I am quite…
malat
  • 12,152
  • 13
  • 89
  • 158
1
vote
1 answer

How to cross compile C++ DCMTK projects with CMake (from Ubuntu to Windows)

I'am trying to cross-compile the simplest DCMTK example I found and I can get it built. I am running Ubuntu 18.04.4 LTS to cross compile using x86_64-w64-mingw32. I have checked these answers and examples too, but they didn't work for me: CMake:…
adabreug94
  • 23
  • 5
1
vote
2 answers

How to read binary data from dicom file?

How to read raw image data from uncompressed DICOM file and dump it to a file. I just use the following code for compressed files. using dcmtk library dataSet->findAndGetElement(DCM_PixelData, element); pixDataElem = OFstatic_cast(DcmPixelData*,…
1
vote
2 answers

Cannot find DICOM attribute (0020,4000 [Image Comments])

I am writing a script using pydicom to automatize ultrasound medical reports. However, I cannot find the 0020,4000 [Image Comments] attribute. I have tried with different images from different ultrasound machines and also with dcmdump from dcmtk…
Brainsdead
  • 13
  • 3
1
vote
1 answer

DCMTK dcm2json produces invalid JSON for broken DS or IS values

DCMTK dcm2json produces invalid JSON for broken DS or IS values see https://support.dcmtk.org/redmine/issues/769 The JSON will contain values like this example: "00291003": {"vr":"IS","Value":[F]}, Where 'F' is clearly not a number.
Michael Hobbs
  • 1,663
  • 1
  • 15
  • 26
1 2
3
9 10