MedicalVisualization

DCMTK

DICOM Offis | | DCMTK Example

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();


DICOM Offis | | DCMTK Example

Options: