Inheritance diagram for DiColorImage:
Public Member Functions | |
DiColorImage (const DiDocument *docu, const EI_Status status, const int spp, const OFBool rgb=OFTrue) | |
constructor | |
virtual | ~DiColorImage () |
destructor | |
virtual EP_Interpretation | getInternalColorModel () const |
get color model of internal pixel representation. | |
virtual unsigned long | getOutputDataSize (const int bits=0) const |
get number of bytes required for the rendered output of a single frame | |
const void * | getOutputData (const unsigned long frame, const int bits, const int planar=0) |
get pixel data with specified format. | |
int | getOutputData (void *buffer, const unsigned long size, const unsigned long frame, const int bits, const int planar=0) |
get pixel data with specified format. | |
const void * | getOutputPlane (const int plane) const |
get pixel data of specified plane. | |
void | deleteOutputData () |
delete internally handled output memory buffer Save memory if data is no longer needed. | |
DiImage * | createImage (const unsigned long fstart, const unsigned long fcount) const |
create copy of current image object | |
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. | |
int | flip (const int horz, const int vert) |
flip current image (horizontally and/or vertically) | |
DiImage * | createFlip (const int horz, const int vert) const |
create a flipped copy of the current image | |
int | rotate (const int degree) |
rotate current image (by steps of 90 degrees) | |
DiImage * | createRotate (const int degree) const |
create a rotated copy of the current image. | |
DiImage * | createMono (const double red, const double green, const double blue) const |
create monochrome copy of the current image | |
const DiPixel * | getInterData () const |
get pointer to intermediate pixel data representation | |
const DiColorPixel * | getColorInterData () const |
get pointer to intermediate pixel data representation | |
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. | |
unsigned long | createAWTBitmap (void *&data, const unsigned long frame, const int bits) |
create true color (32 bit) bitmap for Java (AWT default format). | |
int | writeImageToDataset (DcmItem &dataset, const int mode) |
write current image and related attributes to DICOM dataset. | |
int | writePPM (ostream &stream, const unsigned long frame, const int bits) |
write pixel data to PPM file. | |
int | writePPM (FILE *stream, const unsigned long frame, const int bits) |
write pixel data to PPM file. | |
int | writeRawPPM (FILE *stream, const unsigned long frame, const int bits) |
write pixel data to raw PPM file | |
int | writeBMP (FILE *stream, const unsigned long frame, const int bits) |
write pixel data to BMP file | |
Protected Member Functions | |
DiColorImage (const DiColorImage *image, const unsigned long fstart, const unsigned long fcount) | |
constructor, copy | |
DiColorImage (const DiColorImage *image, const signed long left_pos, const signed long top_pos, const Uint16 src_cols, const Uint16 src_rows, const Uint16 dest_cols, const Uint16 dest_rows, const int interpolate=0, const int aspect=0) | |
constructor, scale/clip | |
DiColorImage (const DiColorImage *image, const int horz, const int vert) | |
constructor, flip | |
DiColorImage (const DiColorImage *image, const int degree) | |
constructor, rotate | |
int | checkInterData (const int mode=1) |
check intermediate pixel representation for consistency | |
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. | |
virtual void | updateImagePixelModuleAttributes (DcmItem &dataset) |
update Image Pixel Module attributes in the given dataset. | |
Protected Attributes | |
const OFBool | RGBColorModel |
flag, indicating whether the intermediate representation uses the RGB color model | |
DiColorPixel * | InterData |
points to intermediate pixel data representation (object) | |
Private Member Functions | |
DiColorImage (const DiColorImage &) | |
DiColorImage & | operator= (const DiColorImage &) |
Private Attributes | |
DiColorOutputPixel * | OutputData |
points to current output data (object) |
Definition at line 58 of file dicoimg.h.
|
constructor
|
|
constructor, copy
|
|
constructor, scale/clip
|
|
constructor, flip
|
|
constructor, rotate
|
|
check intermediate pixel representation for consistency
|
|
create true color (32 bit) bitmap for Java (AWT default format). Memory is not handled internally - must be deleted from calling program.
Implements DiImage. |
|
create true color (24/32 bit) bitmap for MS Windows. memory is not handled internally - must be deleted from calling program.
Implements DiImage. |
|
create a flipped copy of the current image
Implements DiImage. |
|
create copy of current image object
Implements DiImage. |
|
create monochrome copy of the current image
Implements DiImage. |
|
create a rotated copy of the current image.
Implements DiImage. |
|
create scaled copy of specified (clipping) area of the current image object.
Implements DiImage. |
|
flip current image (horizontally and/or vertically)
Implements DiImage. |
|
get pointer to intermediate pixel data representation
Definition at line 250 of file dicoimg.h. References InterData. |
|
get pixel data with specified format. (memory is handled externally)
|
|
get pointer to intermediate pixel data representation
Implements DiImage. Definition at line 241 of file dicoimg.h. References InterData. |
|
get color model of internal pixel representation.
Implements DiImage. Definition at line 84 of file dicoimg.h. References RGBColorModel. |
|
get pixel data with specified format. (memory is handled externally) The standard color model of the pixel data is RGB, but if the flag "rgb" is OFFalse and the original color model was YCbCr_Full or YCbCr_Full_422 YCbCr_Full is used instead.
Implements DiImage. |
|
get pixel data with specified format. (memory is handled internally) The standard color model of the pixel data is RGB, but if the flag "rgb" is OFFalse and the original color model was YCbCr_Full or YCbCr_Full_422 YCbCr_Full is used instead.
Implements DiImage. |
|
get number of bytes required for the rendered output of a single frame
Implements DiImage. |
|
get pixel data of specified plane. (memory is handled internally)
Implements DiImage. |
|
rotate current image (by steps of 90 degrees)
Reimplemented from DiImage. |
|
update Image Pixel Module attributes in the given dataset. Removes color palette lookup tables. Used in writeXXXToDataset() routines.
Reimplemented from DiImage. |
|
write pixel data to BMP file
Reimplemented from DiImage. |
|
write current image and related attributes to DICOM dataset.
Implements DiImage. |
|
write pixel data to PPM file. pixel data is written in ASCII format.
Implements DiImage. |
|
write pixel data to PPM file. pixel data is written in ASCII format.
Implements DiImage. |
|
write pixel data to raw PPM file
Implements DiImage. |