Giter VIP home page Giter VIP logo

dcmtk-basic-example's Introduction

dcmtk-basic-example

dcmtk-basic-example demonstrats how to compile, link and include dcmtk 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:

sudo apt-get install build-essential cmake libdcmtk2-dev

Get the source code

git clone https://github.com/marcinwol/dcmtk-basic-example
cd dcmtk-basic-example

Compile

cmake .
make

Download example DICOM images

For this example C++11 program, I used images avaliable here

Still being in the dcmtk-basic-example:

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

./testDCMTK

The output should be:

Patient name is: Doe^Archibald
Program finish.

dcmtk-basic-example's People

Contributors

marcinwol avatar neithari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.