Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

dcmimgle: an image processing library and utility apps

This module contains classes to access and render DICOM monochrome images. Support for color images is provided by the module dcmimage. Support for JPEG compressed images is provided by the module dcmjpeg.

The main interface classes are:

Tools

This module contains the following command line tools:

Examples

The following example shows how to load a DICOM single-frame monochrome image and render its pixel data:

DicomImage *image = new DicomImage("test.dcm");
if (image != NULL)
{
  if (image->getStatus() == EIS_Normal)
  {
    if (image->isMonochrome())
    {
      image->setMinMaxWindow();
      Uint8 *pixelData = (Uint8 *)(image->getOutputData(8 /* bits */));
      if (pixelData != NULL)
      {
        /* do something useful with the pixel data */
      }
    }
  } else
    cerr << "Error: cannot load DICOM image (" << DicomImage::getString(image->getStatus()) << ")" << endl;
}
delete image;


Generated on 26 Apr 2005 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.4.2