# dcmtk-basic-example **Repository Path**: somous/dcmtk-basic-example ## Basic Information - **Project Name**: dcmtk-basic-example - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-30 - **Last Updated**: 2025-11-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dcmtk-basic-example dcmtk-basic-example demonstrats how to compile, link and include [dcmtk](http://dicom.offis.de/dcmtk.php.en) 3.6.0 toolkit for developing C++11 programs to process DICOM images. The example was developed and tested on Ubuntu 14.04. ## motivation When wanting to use dcmtk libraries in my own C++ code, I noticed that basic examples how to link and use dcmtk in Ubuntu 14.04 are scarse. Thus, I decided to make this simple example, to help you guys get started with dcmtk. ## Compilation and installation (Ubuntu 14.04) #### Dependencies: ```bash sudo apt-get install build-essential cmake libdcmtk2-dev ``` #### Get the source code ```bash git clone https://github.com/marcinwol/dcmtk-basic-example cd dcmtk-basic-example ``` #### Compile ```bash cmake . make ``` #### Download example DICOM images For this example C++11 program, I used images avaliable [here](http://www.pcir.org/researchers/77654033_20010101.html) Still being in the dcmtk-basic-example: ```bash wget https://dl.dropboxusercontent.com/s/w28rorcufnaddua/77654033_20010101.tar.bz2 mkdir DCMIMAGES tar -xjvf 77654033_20010101.tar.bz2 -C DCMIMAGES/ rm 77654033_20010101.tar.bz2 ``` #### Run the code ```bash ./testDCMTK ``` The output should be: ```bash Patient name is: Doe^Archibald Program finish. ```