Newest dcmtk Questions

Q&A for professional and enthusiast programmers

Get pixel data from DICOM file .dcm

How can i get the pixel data from .dcm file as an array variable using DCMTK library? I'm using this site for preference and it didn't work, the data result is very different from the original ...

Dcmj2pnm tojpeg patient name missing

I am new in Dcmj2pnm . i have succesfully converted a Dcm file to jpg through commandline in Win 7 using C:\dcmj2pnm.exe D:\test.dcm D:\test.jpg +oj +Wi 1 But it misses the patient name and ...

Overwrite an image/pixel data in the dicom file using dcmtk

I use dcmtk to read a dicom file and extract the image into a .tiff format. After doing some image processing I have an image which I would like to save in the source dicom file.That is overwriting ...

using single AE title to more than one Ipaddress

I am using dcmtk for PACS server process. here I am using dcmqrscp exe . In that exe dcmqrscp.cfg file contain detail about hosttable , aetitle table and vendor table. In this hostable i am create ...

How to use dcmtk/dcmprscp in Windows

How can I use dcmprscp to receive from SCU Printer a DICOM file and save it, I'm using dcmtk 3.6 & I've some trouble to use it with the default help, this's what I'm doing in CMD: dcmprscp.exe --...

ubuntu14.04 build android4.4 modem error

when I build modem file it said: make: [build/ELINK82_TB_KK_HSPA/DEFAULT/bin/dep/codegen_dep/nvram_auto_gen.det] Error 2 I user gcc 4.4 and g++ 4.4 build android 4.4 modem, If anybody can help me, ...

How to compile dcmtk Android for x86

I followed the dcmtk wiki:http://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_CompileAndroid But it only support arm,the ANDROID_ABI list is only arm's.Is there any way to support X86 cross-...

DICOM field have more value than expected

I am using the DCMTK (3.6.0) library to get the value of the (0020,0013) tag which is the image number aka the slice number of the serie. I use the following in a batch script for /f "tokens=2 ...

How should IODEnhUSImageModule be utilized?

I am using the DCMTK dcmiod module (from the latest snapshot), which provides an API for reading/writing images on a higher level than dcmdata (as advised by the answer to this SO question). I now use ...

Read DICOM in C++ and convert to OpenCV

I would like to read DICOM images in C++ and manipulate them using opencv. I managed to read a dicom image using DCMTK however, I am unsure how to convert it to an opencv Mat. The following is what ...

DCMTK C++ : how to get data pixels from dicom files

I'm using DCMTK for a C++ project and want to retrieve pixels from dicom files. I used thid basic example : DicomImage *image = new DicomImage("test.dcm"); if (image != NULL) ...

How to read dicom pixels in c++

I want to parse DICOM files in order to do some pixel processing. I tried DCMTK libraries but it's not working for me. I want something very simple, like a lightweight cross platform library in C++, ...

Convert OFString to string or char in DCMTK

I am trying to extract the instance number from a DICOM image using dcmtk. The code is shown below: DcmFileFormat fileformat; OFCondition status = fileformat.loadFile(src_path); if (status....

Apply overlay in dicom to jpeg conversion by dcmj2pnm

I am converting dicom to jpeg using dcmj2pnm library. How to apply the overlays? It says this overlay cannot be applied. please also give example for including all the overlays.

How to get series Description from Findscu in dcmtk

Now i am working with the DCMTK 3.6 for communicating between Pacs and client side. Here I am using FINDSCU for getting list from pacs server. I am using following bat file code to get the list of ...

what is curve data which is used in dcmmkcrv of dcmtk library

Currently i am using dcmtk for pac and modality console communication . In dcmtk one execute file is there dcmmkcrv. It is used for store the curve data in dcm file. Now my question is , what is ...

/usr/bin/ld: cannot find -ldcmimage

Am trying to compile dcmbeam using make on Centos 7 -x64, however I am getting these errors: make c++ -g -O -I/usr/include/libxml2 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -...

Dicom Toolkit (DCMTK) - How to get Window Centre and Width

I am currently using DCMTK in C++. I am quite new to this toolkit but, as I understand it, I should be able to read the window centre and width for normalisation purposes. I have a DicomImage ...

Unable to terminate the wlmscpfs SCP server of DCMTK tool kit

I use worklist SCP (wlmscpfs.exe on windows 7 OS) process of DCMTK as a worklist SCP server and the findscu.exe is used to get the information from it. Once the client server interaction is over, i ...

moving CMake options from the command line into the top-level CMakeLists.txt

I'm building DCMTK using the command line, using the following command: cmake -DBUILD_APPS=BOOL:OFF ../latest_dcmtk I want to move the BUILD_APPS setting from the command line into the top-level ...

DCMTK findscu returns multiple results when one is expected

I am trying to run a c-move to get a RTDOSe from a given RTPlan, first I tried to find the rtdose that references my rtplan. I expected that result to be a single item but I am getting multiple items. ...

Use DCMTK to as library to create cloud-based PACS

I'm quite new to DCMTK and wish to create a PACS with Cassandra as backed-database. The PACS should support FIND-SCP, MOVE-SCP, STORE-SCP, GET-SCP protocol. Please tell me where (class, ...

Error on make installing DCMTK on Ubuntu

In first place, sorry about my bad english, i'm not a american. Anyway, i'm trying to install the DCMTK on Ubuntu and when i do the make all step it keeps giving me that error: Error output from make ...

CMake script can't start android emulator

I'm trying to build the DCMTK Dicom Toolkit for the Android OS. The toolkit is written in C and C++. They provide CMake files and reading their documentation using Android Cmake and android.toolchain....

How to specified multiple attributes in the findscu command

All, Forgive me I am a newbie in the DICOM world. I tried to learn the DCMTk tools to talk with PACS server. But didn't found much tutorial or sample in the internet to know enough about it .Currently ...

Which version of dcmtk is compatible with gcc version 4.8.2?

I am trying to install dcmtk 3.6.0 on my linux system gcc version 4.8.2. But i get an error "Resize which is part of ofoset.h is not defined in this scope". Upon reading, i realized that this happens ...

Create DicomImage from scratch using Dcmtk

In order to save CT data I would like to create a DicomImage from scratch, similar like this can be done using DRTImageIOD. However, DicomImage does not have a default constructor. From the ...

How to use DCMTK library with javascript

After working with dcmtk in C++, I'd like to use it in javascript but I think it's not as easy as it is with C++. is there any way to do that ? thank you in advance.

DicomImage's writeBMP function produces unclear gray image

I am using DCMTK to read and hopefully modify DICOM images. I have the following code: #include <iostream> #include <opencv\cv.h> #include <dcmtk\dcmimgle\dcmimage.h> int main() { ...

Linker error LNK2019 when using DCMTK with Visual Studio

This is not a new question but the solutions haven't worked for me. I want to read dicom files using C++. I have 32-bit Windows PC with VS 2013 community edition. This post and other answers therein ...

Strange error initializing a QApplication before using std::stod

I'm receiving an unexpected behavior in my current project. I use the DICOM library dcmtk to read information from some dicom files, and Qt to show the images. During the information extraction, I ...

Static linking DCMTK library

I use DCMTK in my application and for compilation use cmake file. cmake finds all libraries (at least headers, because in compiles source files to .o files) the only problem is that during linking it ...

undefined reference in Qt creator for DCMTK libraries

I'm trying to run a simple application in Qt creator using DCMTK libraries and it doesn't work as it should. I receive the following message: error: undefined reference to `DicomImage::DicomImage(...

How to build a DCMTK project file with CMake?

I am trying to build a DCMTK project file using the CMake gui, so I can use it in Qt. Unfortunately, I still get a few errors. I've read many related topics (e.g. How to use Dcmtk in Qt?), but I ...

Visual Studio: MSB3073 error exited with code 1

everyone. I am compiling DCMTK 3.6.1 in Visual Studio 2013. My OS is Windows 8. I also used CMake 3.2.3. I have already successfully compiled both x64 versions of debug and release for the ALL_BUILD ...

Save a bmp file as dicom using dcmtk

I have a dicom image which I converted to tiff using DCMTK and have done some image processing. I have the result image as .bmp,But I wanna know if its possible to save it as .dcm with all the ...

change dicom image's window width and window level

Recently, I am working on process dicom image。I don't know how to change the WWWL of a dicom image. Also, I use dcmtk to convert dicom image to bmp and show it(I didn't use vtk to show the image). I ...

dcmqrscp and echoscu only work with ANY

I'm using dcmtk 3.6.1 on Windows 8. I cannot access a PACS server using dcmqrscp and echoscu and the following dcmqrscp.cfg (error is Called AE Title is not recognised). NetworkTCPPort = 11112 ...

How to get the DCMTK library working in Qt Creator?

I am trying to get DCMTK working in Qt Creator, but I got stuck at step 5. Please let me know if the other steps are wrong. Tools: Qt Creator: Qt Creator 3.5.1 (opensource), based on Qt 5.5.1 (MSVC ...

Is there any N-Delete tool in dcmtk? [closed]

All, Is there any N-delete tools in DCMTK? If there isn't , Could someone please recommend a tool to me . I just want to delete the DICOM file stored in the pacs. Thanks.

Creating H.264/AVC dicom file with DCMTK

Does anyone have ANY information on creating a valid DICOM file with DCMTK? 1.2.840.10008.1.2.4.100 MPEG2 Main Profile Main Level 1.2.840.10008.1.2.4.102 MPEG-4 AVC/H.264 High Profile / Level 4.1 ...

Is it possible for using dcmqrscp in Public IP address

I am uisng dcmtk for transfer Dicom Image from PC X to PC Y with the help of dcmqrscp. I am running following code in X which act as a server dcmqrscp.exe -v -c "D:\Dcm Image Database\dcmqrscp.cfg"...

How to load a dicom image using DCMTK 3.6.1

I am trying to load a monochrome dicom image file using DCMTK with the example code provided in the docs http://support.dcmtk.org/docs/mod_dcmimgle.html The file I am trying to compile is dcmtest....

How to use DCMTK library with nodejs?

I want to use dcmtk in my nodejs server side, I tried this code here : https://github.com/commontk/dcmjs but I couldn't build dcmjs.js, I installed the last version emscripten and did make -j5 like ...

How to build DCMTK 3.6.1 libs for iOS?

I followed Russes' instructions found at http://forum.dcmtk.org/viewtopic.php?f=3&t=3047&start=15 With a fresh copy of his "afab" git branch, I built Xcode project for x86 arch with the ...

algorithm for Link between different view of Dicom images

I am working in matlab for view Dicom images from the pacs . Now I have three different series of dicom image for same patient which i download from Pacs. first one is Axial plane view , second one is ...

compress dicom files to be sent to a remote server

I'm looking for a way to compress dicom files and send them to a remote server (nodejs in my case) I tried bz2 compression and it seems to work very well on large dicom files (tested it with 10 Mb ...

DCMTK StoreSCP.exe writing files to memory

I am using storescp.exe(http://support.dcmtk.org/docs/storescp.html) as StoreSCP of my DICOM application. I need to send the DICOM files to storescp where no dcm file is generated. Could you please ...

Compiling DCMTK for Android get CMake Error

I am use cmake DCMTK for Android OS : Win7 64bit DCMTK : dcmtk-3.6.0 CMake : cmake-3.7.0-rc3 NDK : android-ndk-r9d I followed the dcmtk wiki http://support.dcmtk.org/redmine/projects/dcmtk/...

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 ...
Translating... 0%