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
0
votes
1 answer

Read a 3D Dicom image with DCMTK and convert it to OpenCV Mat

I have a dicom 3D image which is [512,512,5] (rows, cols, slices). I want to read it with DCMTK toolkit and convert it to a OpenCV Mat object. The image is 16 bits unsigned int. My question is: Does anyone know the correct way to convert this dicom…
rvimieiro
  • 1,043
  • 1
  • 10
  • 17
0
votes
1 answer

bash for loop for given array only accounts for one file out of two files in array

I have an array of two files from the find command: [ogino@chead SIEMENS]$ DCM_FILES=($(find . -type f)) [ogino@chead SIEMENS]$ echo ${DCM_FILES[@]} ./107939/107939/DICOM/0020_20071002_104554.150005…
florence-y
  • 751
  • 3
  • 8
  • 18
0
votes
1 answer

How to create a Anatomic Regions in Study Code Sequence

I'd like to edit a DICOM file with dcmodify to add an 'Anatomic Regions in Study Code Sequence' element (TAG: 0008,0063) but I'm unsure how to do this. I can add the tag but what do I then add as its children? Is is it a list of (0018,0015) tags?
PaulN
  • 329
  • 2
  • 6
  • 13
0
votes
0 answers

DCMTK: wrapped dcmsend dll called from C# gives error when called more than once

I am attempting to integrate DCMTK 3.6.4 (a C++ library) into a C# environment. While I have successfully wrapped the DLL To that end, I've taken the code for dcmsend, wrapped it in an 'extern "C" {}', put '_declspec(dllexport)' before the main…
0
votes
1 answer

What is the probable reason for QtDCM compilation fail?

QtDCM compile fails. I did all as it described in this manual, DCMTK and ITK was compiled without any trouble, but when I try to compile QtDCM, it fails with errors: 2>QtDcmFindScu.cpp 2>D:\CPP\qtdcm\src\QtDcmFindScu.cpp(197): error C2259:…
Dogrtt
  • 103
  • 1
  • 5
0
votes
1 answer

why does GE PACS use Modality with c-find in StudyLevel

I use the c-find of DCMTK to query GE's pacs with study root, study level. And the condition is studydate = 20181112, Modality= "" to query PatientID. I know that Modality is a tag under series level. PACS should not use this condition with study…
chenzongxi
  • 25
  • 4
0
votes
1 answer

How can I use make command(MSYS) to build DCMTK?

I have used CMAKE to configure and generate DCMTK source code. Now I am trying to build libs using make command in msys. But as soon as I am passing make command, I am getting this: 212715008@G5CG7324856E /c/Ashish/dcmtkans $ make > Microsoft…
Ash
  • 41
  • 7
0
votes
1 answer

DCMTK library compilation for android

I am trying to compile DCMTK source code to generate library for android platform. I used CMAKE3.12.1 to compile the source code. After setting SDK and NDK I am getting this error : CMake Error at CMake/dcmtkUseAndroidSDK.cmake:301 (MESSAGE): …
Ash
  • 41
  • 7
0
votes
1 answer

DICOM pixel data lossless rendering and representation

I quote : DICOM supports up to 65,536 (16 bits) shades of gray for monochrome image display, thus capturing the slightest nuances in medical imaging. In comparison, converting DICOM images into JPEGs or bitmaps (limited to 256 shades of gray) often…
ZSmain
  • 360
  • 1
  • 6
  • 20
0
votes
1 answer

How to convert a DicomImage(Dcmtk) with depth=17 to a Mat(Opencv) object?

When using this code I don't get the result that I want (see the picture). DicomImage *image = new DicomImage("/home/000001.dcm"); cv::Mat inputImage(int(image->getHeight()), int(image->getWidth()), CV_16UC1,…
ZSmain
  • 360
  • 1
  • 6
  • 20
0
votes
1 answer

How to link properly Dcmtk with Qt for Linux?

My goal is open Dicom files and convert thes into cv::Mat to process them with Opencv. I have compiled dcmtk 3.6.3 on ubuntu 18.4.1 and tried to link it with Qt 5.11.1 with Qt Creator 4.6.2 but failed to do so. # pro file QT += core QT …
ZSmain
  • 360
  • 1
  • 6
  • 20
0
votes
1 answer

How to link DCMTK with Qt on Mac OSX

I am new with all of these Qt, Dcmtk and CMake and I am suppose to use it for a school project. A lot of things are available on the internet but essentially for Windows.. I am trying to link Dcmtk with Qt and make it run on my mac but It is not…
Laura H
  • 1
  • 2
0
votes
1 answer

How to solve error LNK2019 by myself in Visual Studio series

During my study in dcmtk, I come across hundreds of error "LNK2019". Everytime I could only google it, searching for someone telling me which lib should I add. I wonder if I could find the lib I need by myself. My work IDE is Visual Studio 2015, and…
WtDMaO
  • 13
  • 2
0
votes
1 answer

How to use DCMTK classes in javascript

I know how to use findscu, echoscu etc from a shell program and also grabbing output from a shell in program codes, i.e. using node.js child_process spawn, etc. But in the official site, there are also classes available, i.e. DcmDateTime, etc. How…
Nafis Abdullah Khan
  • 2,062
  • 3
  • 22
  • 39
0
votes
0 answers

building dcmtk using msvc2010, unresolved external symbols (globals defined in the library)

I am building dcmtk 3.6.3 using msvc2010 into a single dll and I used the lib to link to my program, and the globals defined in the library all reports unresolved external symbol. I checked both the dll and lib file using dumpbin tool and found…
shangping
  • 989
  • 2
  • 9
  • 25