33 #include "dcmtk/config/osconfig.h" 35 #include "dcmtk/dcmimgle/diimage.h" 36 #include "dcmtk/dcmimage/dicopx.h" 66 const EI_Status status,
68 const OFBool rgb = OFTrue);
105 const int planar = 0);
122 const unsigned long size,
123 const unsigned long frame,
125 const int planar = 0);
149 const unsigned long fcount)
const;
172 const signed long top_pos,
173 const unsigned long src_cols,
174 const unsigned long src_rows,
175 const unsigned long dest_cols,
176 const unsigned long dest_rows,
177 const int interpolate,
179 const Uint16 pvalue)
const;
190 int flip(
const int horz,
201 const int vert)
const;
211 int rotate(
const int degree);
231 const double blue)
const;
264 const unsigned long size,
265 const unsigned long frame,
267 const int upsideDown,
268 const int padding = 1);
280 const unsigned long frame,
304 int writePPM(STD_NAMESPACE ostream& stream,
305 const unsigned long frame,
318 const unsigned long frame,
330 const unsigned long frame,
342 const unsigned long frame,
355 const unsigned long fstart,
356 const unsigned long fcount);
377 const signed long left_pos,
378 const signed long top_pos,
379 const Uint16 src_cols,
380 const Uint16 src_rows,
381 const Uint16 dest_cols,
382 const Uint16 dest_rows,
383 const int interpolate = 0,
384 const int aspect = 0);
421 const void *
getData(
void *buffer,
422 const unsigned long size,
423 const unsigned long frame,
const DiPixel * getInterData() const
get pointer to intermediate pixel data representation
a class representing a list of DICOM elements in which each element has a different tag and elements ...
void deleteOutputData()
delete internally handled output memory buffer Save memory if data is no longer needed.
virtual EP_Interpretation getInternalColorModel() const
get color model of internal pixel representation.
const void * getData(void *buffer, const unsigned long size, const unsigned long frame, const int bits, const int planar)
get pixel data with specified format.
DiColorPixel * InterData
points to intermediate pixel data representation (object)
unsigned long createAWTBitmap(void *&data, const unsigned long frame, const int bits)
create true color (32 bit) bitmap for Java (AWT default format).
int checkInterData(const int mode=1)
check intermediate pixel representation for consistency
int flip(const int horz, const int vert)
flip current image (horizontally and/or vertically)
Interface class to DICOM data management (dcmdata).
virtual void updateImagePixelModuleAttributes(DcmItem &dataset)
update Image Pixel Module attributes in the given dataset.
int writeImageToDataset(DcmItem &dataset, const int mode, const int planar)
write current image and related attributes to DICOM dataset.
const void * getOutputData(const unsigned long frame, const int bits, const int planar=0)
get pixel data with specified format.
int writeRawPPM(FILE *stream, const unsigned long frame, const int bits)
write pixel data to raw PPM file
Base class for color images.
Abstract base class to create color output data.
DiImage * createRotate(const int degree) const
create a rotated copy of the current image.
DiImage * createScale(const signed long left_pos, const signed long top_pos, const unsigned long src_cols, const unsigned long src_rows, const unsigned long dest_cols, const unsigned long dest_rows, const int interpolate, const int aspect, const Uint16 pvalue) const
create scaled copy of specified (clipping) area of the current image object.
DiImage * createMono(const double red, const double green, const double blue) const
create monochrome copy of the current image
int rotate(const int degree)
rotate current image (by steps of 90 degrees)
const void * getOutputPlane(const int plane) const
get pixel data of specified plane.
Abstract base class to handle color pixel data.
DiColorImage(const DiDocument *docu, const EI_Status status, const int spp, const OFBool rgb=OFTrue)
constructor
virtual unsigned long getOutputDataSize(const int bits=0) const
get number of bytes required for the rendered output of a single frame
virtual ~DiColorImage()
destructor
const OFBool RGBColorModel
flag, indicating whether the intermediate representation uses the RGB color model ...
int writePPM(STD_NAMESPACE ostream &stream, const unsigned long frame, const int bits)
write pixel data to PPM file.
unsigned long createDIB(void *&data, const unsigned long size, const unsigned long frame, const int bits, const int upsideDown, const int padding=1)
create true color (24/32 bit) bitmap for MS Windows.
DiImage * createImage(const unsigned long fstart, const unsigned long fcount) const
create copy of current image object
Abstract base class to handle pixel data.
DiColorOutputPixel * OutputData
points to current output data (object)
int writeBMP(FILE *stream, const unsigned long frame, const int bits)
write pixel data to BMP file
DiImage * createFlip(const int horz, const int vert) const
create a flipped copy of the current image
const DiColorPixel * getColorInterData() const
get pointer to intermediate pixel data representation