This module contains classes that implement a high-level API for the DICOM Softcopy Grayscale Presentation State Storage SOP Class. It also contains various support classes that are used by DICOMscope, a free DICOM viewer that has been developed as a demonstrator for presentation states. See http://dicom.offis.de/dscope
The main interface classes are:
Tools
This module contains the following command line tools:
Examples
The following example shows how to create a default presentation state for a DICOM image:
if (infile.loadFile("image.dcm").good())
{
{
if (pstate.
write(*outfile.getDataset(), OFFalse).
good())
{
}
}
}
a Grayscale Softcopy Presentation State.
Definition: dvpstat.h:37
OFCondition createFromImage(DcmItem &dset, DVPSoverlayActivation overlayActivation=DVPSO_copyOverlays, DVPSVOIActivation voiActivation=DVPSV_preferVOILUT, OFBool curveActivation=OFTrue, OFBool shutterActivation=OFTrue, OFBool presentationActivation=OFTrue, DVPSGraphicLayering layering=DVPSG_twoLayers, const char *aetitle=NULL, const char *filesetID=NULL, const char *filesetUID=NULL)
creates a default presentation state for a DICOM image.
OFCondition write(DcmItem &dset, OFBool replaceSOPInstanceUID)
writes the presentation state managed by this object to a DICOM dataset.
OFBool good() const
check if the status is OK.
Definition: ofcond.h:293
@ EXS_LittleEndianExplicit
Explicit VR Little Endian.
Definition: dcxfer.h:45
The following example shows how to apply the grayscale transformation pipeline from a presentation state to a DICOM image:
{
{
{
const void *pixel;
unsigned long width;
unsigned long height;
{
}
}
}
}
OFCondition read(DcmItem &dset)
reads a presentation state from a DICOM dataset.
OFCondition getPixelData(const void *&pixelData, unsigned long &width, unsigned long &height)
applies presentation state to attached image and returns image bitmap.
void detachImage()
detaches and frees the image (incl.
OFCondition attachImage(DcmDataset *dataset, OFBool transferOwnership)
attaches an image to the presentation state.