MedicalVisualization

DCMTK

DCMTK Example | | DCMTK Keys

The DCMTK tool kit handles a DICOM file via the DcmFileFormat C++ class:

#include <dcmtk/config/osconfig.h>
#include <dcmtk/dcmdata/dctk.h>

DcmFileFormat *fileFormat = new DcmFileFormat();

The DcmFileFormat descriptor offers access to the image data stored in a .dcm or .ima file:

fileFormat->loadFile("filename.dcm");
DcmDataset *image = fileFormat->getDataset();


DCMTK Example | | DCMTK Keys

Options: