33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmimgle/diutils.h" 36 #include "dcmtk/ofstd/ofstream.h" 65 const unsigned long size,
66 const unsigned long frame,
67 const unsigned long max);
83 virtual const void *
getData()
const = 0;
107 virtual int writePPM(STD_NAMESPACE ostream& stream)
const = 0;
115 virtual int writePPM(FILE *stream)
const = 0;
134 int isUnused(
const unsigned long value);
virtual const void * getData() const =0
get pointer to output pixel data (abstract)
Abstract base class to handle monochrome pixel data.
Abstract base class to create monochrome output data.
virtual EP_Representation getRepresentation() const =0
get integer representation (abstract)
virtual int writePPM(STD_NAMESPACE ostream &stream) const =0
write pixel data of selected frame to PPM/ASCII file (abstract)
virtual void determineUsedValues()=0
examine which pixel values are actually used (abstract)
DiMonoOutputPixel(const DiMonoPixel *pixel, const unsigned long size, const unsigned long frame, const unsigned long max)
constructor
unsigned long getCount() const
get number of pixel per frame
unsigned long Count
number of pixels per frame (intermediate representation)
Uint8 * UsedValues
array of used pixel values
virtual void removeDataReference()=0
remove reference to (internally handled) pixel data (abstract)
virtual void * getDataPtr()=0
get pointer to output pixel data (abstract)
virtual size_t getItemSize() const =0
get size of one pixel / item in the pixel array (abstract)
const unsigned long MaxValue
maximum output value
int isUnused(const unsigned long value)
check whether specified pixel value is used in the image.
const unsigned long FrameSize
number of pixels per frame (memory buffer size)
virtual ~DiMonoOutputPixel()
destructor