Inheritance diagram for DiImage:
Public Member Functions | |
DiImage (const DiDocument *docu, const EI_Status status, const int spp) | |
constructor | |
virtual | ~DiImage () |
destructor | |
EI_Status | getStatus () const |
get status of the image object | |
Uint32 | getNumberOfFrames () const |
get number of frames | |
Uint32 | getFirstFrame () const |
get index of first frame | |
Uint32 | getRepresentativeFrame () const |
get representative frame | |
Uint16 | getRows () const |
get number of rows | |
Uint16 | getColumns () const |
get number of columns | |
double | getPixelWidth () const |
get pixel's width | |
double | getPixelHeight () const |
get pixel's height | |
double | getRowColumnRatio () const |
get pixel's rows/column ratio | |
double | getColumnRowRatio () const |
get pixel's column/rows ratio | |
int | setRowColumnRatio (const double ratio) |
set pixel's rows/column ratio | |
int | setColumnRowRatio (const double ratio) |
set pixel's column/rows ratio | |
EP_Polarity | getPolarity () const |
get polarity. | |
int | setPolarity (const EP_Polarity polarity) |
set polarity. | |
virtual int | getBits (const int bits=0) const |
get number of bits per sample. | |
virtual EP_Interpretation | getInternalColorModel () const =0 |
get color model of internal pixel representation. | |
virtual const DiPixel * | getInterData () const =0 |
get access to intermediate pixel data representation (abstract) | |
virtual unsigned long | getOutputDataSize (const int bits=0) const =0 |
get number of bytes required for the rendered output of a single frame | |
virtual const void * | getOutputData (const unsigned long frame, const int bits, const int planar)=0 |
get pixel data with specified format (abstract). | |
virtual 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 (abstract). | |
virtual const void * | getOutputPlane (const int plane) const =0 |
get pixel data of specified plane (abstract). | |
virtual void | deleteOutputData ()=0 |
delete internally handled output memory buffer (abstract) | |
virtual DiOverlay * | getOverlayPtr (const unsigned int) |
get pointer to the object managing the overlay planes | |
virtual DiMonoImage * | getMonoImagePtr () |
get pointer to monochrome image object | |
virtual DiImage * | createImage (const unsigned long fstart, const unsigned long fcount) const =0 |
create copy of current image object (abstract) | |
virtual DiImage * | createScale (const signed long left_pos, const signed long top_pos, const unsigned long clip_width, const unsigned long clip_height, const unsigned long scale_width, const unsigned long scale_height, const int interpolate, const int aspect, const Uint16 pvalue) const =0 |
create scaled copy of specified (clipping) area of the current image object (abstract). | |
virtual int | flip (const int horz, const int vert)=0 |
flip current image horizontally and/or vertically (abstract) | |
virtual DiImage * | createFlip (const int horz, const int vert) const =0 |
create a flipped copy of the current image (abstract). | |
virtual int | rotate (const int degree) |
rotate current image (by steps of 90 degrees) | |
virtual DiImage * | createRotate (const int degree) const =0 |
create a rotated copy of the current image (abstract). | |
virtual DiImage * | createMono (const double red, const double green, const double blue) const =0 |
create monochrome copy of the current image (abstract). | |
virtual unsigned long | createDIB (void *&data, const unsigned long size, const unsigned long frame, const int bits, const int upsideDown, const int padding=1)=0 |
create true color (24/32 bit) or palette (8 bit) bitmap for MS Windows (abstract). | |
virtual unsigned long | createAWTBitmap (void *&data, const unsigned long frame, const int bits)=0 |
create true color (32 bit) bitmap for Java AWT (abstract). | |
int | writeFrameToDataset (DcmItem &dataset, const unsigned long frame=0, const int bits=0, const int planar=0) |
render pixel data of given frame and write image related attributes to DICOM dataset. | |
virtual int | writeImageToDataset (DcmItem &dataset, const int mode=0)=0 |
write current image and related attributes to DICOM dataset. | |
virtual int | writePPM (ostream &stream, const unsigned long frame, const int bits)=0 |
write pixel data to PPM file (abstract). | |
virtual int | writePPM (FILE *stream, const unsigned long frame, const int bits)=0 |
write pixel data to PPM file (abstract). | |
virtual int | writeRawPPM (FILE *stream, const unsigned long frame, const int bits)=0 |
write pixel data to raw PPM file (abstract) | |
virtual int | writeBMP (FILE *stream, const unsigned long frame, const int bits) |
write pixel data to BMP file | |
Protected Member Functions | |
DiImage (const DiDocument *docu, const EI_Status status) | |
constructor | |
DiImage (const DiImage *image, const unsigned long fstart, const unsigned long fcount) | |
constructor, copy | |
DiImage (const DiImage *image, const Uint16 width, const Uint16 height, const int aspect=0) | |
constructor, scale/clip | |
DiImage (const DiImage *image, const int degree=0) | |
constructor, rotate | |
DiImage (const DiImage *image, const unsigned long frame, const int stored, const int alloc) | |
constructor, createMonoOutput | |
void | deleteInputData () |
delete internally handled object for the input pixel data conversion | |
void | checkPixelExtension () |
check and possibly correct values for pixel spacing, aspect ratio etc. | |
void | convertPixelData (DcmPixelData *pixel, const int spp) |
create input pixel data representation from DICOM dataset structures | |
virtual void | updateImagePixelModuleAttributes (DcmItem &dataset) |
update Image Pixel Module attributes in the given dataset. | |
int | detachPixelData () |
detach pixel data. | |
DiImage (const DiImage &) | |
DiImage & | operator= (const DiImage &) |
Protected Attributes | |
EI_Status | ImageStatus |
copy of status variable declared in class 'DicomImage' | |
const DiDocument * | Document |
points to special object, which capsulates the DCMtk/DCMdata | |
Uint32 | FirstFrame |
first frame to be processed | |
Uint32 | NumberOfFrames |
number of frames in case of multi-frame images (otherwise '1') | |
Uint32 | TotalNumberOfFrames |
total number of frames stored in the dataset | |
Uint32 | RepresentativeFrame |
number of representative frame, type 3 attribute (default '0') | |
Uint16 | Rows |
number of rows (in pixel) | |
Uint16 | Columns |
number of columns (in pixel) | |
double | PixelWidth |
width of each pixel according to 'PixelSpacing/AspectRatio' | |
double | PixelHeight |
height of each pixel according to 'PixelSpacing/AspectRatio' | |
Uint16 | BitsAllocated |
number of bits allocated for each pixel | |
Uint16 | BitsStored |
number of bits stored for each pixel (see 'BitsPerSample') | |
Uint16 | HighBit |
position of highest stored bit | |
int | BitsPerSample |
actual number of bits per sample (depth) | |
EP_Polarity | Polarity |
polarity (normal or reverse) | |
int | hasSignedRepresentation |
is 'true' if pixel data is signed | |
int | hasPixelSpacing |
is 'true' if attribute 'PixelSpacing' is present | |
int | hasImagerPixelSpacing |
is 'true' if attribute 'ImagerPixelSpacing' is present | |
int | hasPixelAspectRatio |
is 'true' if attribute 'PixelAspectRatio' is present | |
int | isOriginal |
is 'false' if derived from original image data (e.g. scaled) | |
DiInputPixel * | InputData |
points to intermediate pixel representation (template object) |
Definition at line 76 of file diimage.h.
|
constructor
|
|
constructor
|
|
constructor, copy
|
|
constructor, scale/clip
|
|
constructor, rotate
|
|
constructor, createMonoOutput
|
|
create input pixel data representation from DICOM dataset structures
|
|
create true color (32 bit) bitmap for Java AWT (abstract).
Implemented in DiColorImage, and DiMonoImage. Referenced by DicomImage::createJavaAWTBitmap(). |
|
create true color (24/32 bit) or palette (8 bit) bitmap for MS Windows (abstract).
Implemented in DiColorImage, and DiMonoImage. Referenced by DicomImage::createWindowsDIB(). |
|
create a flipped copy of the current image (abstract).
Implemented in DiColorImage, DiMono1Image, and DiMono2Image. |
|
create copy of current image object (abstract)
Implemented in DiColorImage, DiMono1Image, and DiMono2Image. |
|
create monochrome copy of the current image (abstract).
Implemented in DiColorImage, DiMono1Image, and DiMono2Image. |
|
create a rotated copy of the current image (abstract).
Implemented in DiColorImage, DiMono1Image, and DiMono2Image. |
|
create scaled copy of specified (clipping) area of the current image object (abstract).
Implemented in DiColorImage, DiMono1Image, and DiMono2Image. |
|
detach pixel data. removes storage area used for the pixel data from memory |
|
flip current image horizontally and/or vertically (abstract)
Implemented in DiColorImage, and DiMonoImage. |
|
get number of bits per sample. If the optional parameter is specified the value will be checked and in any case a valid value will be returned.
Reimplemented in DiMonoImage. Definition at line 231 of file diimage.h. References BitsPerSample. Referenced by DicomImage::getDepth(), DicomImage::getOutputData(), and DicomImage::getOutputDataSize(). |
|
get pixel's column/rows ratio
Definition at line 180 of file diimage.h. References getPixelHeight(), and getPixelWidth(). Referenced by DicomImage::getWidthHeightRatio(). |
|
get number of columns
Definition at line 144 of file diimage.h. References Columns. Referenced by DicomImage::getWidth(). |
|
get index of first frame
Definition at line 117 of file diimage.h. References FirstFrame. Referenced by DicomImage::getFirstFrame(). |
|
get access to intermediate pixel data representation (abstract)
Implemented in DiColorImage, and DiMonoImage. Referenced by DicomImage::getInterData(). |
|
get color model of internal pixel representation. Possible values are: EPI_Monochrome1, EPI_Monochrome2, EPI_RGB and EPI_YBR_Full
Implemented in DiColorImage, DiMono1Image, and DiMono2Image. |
|
|
get number of frames
Definition at line 108 of file diimage.h. References NumberOfFrames. Referenced by DicomImage::getFrameCount(). |
|
get pixel data with specified format (abstract). (memory is handled externally)
Implemented in DiColorImage, DiMono1Image, DiMono2Image, and DiMonoImage. |
|
get pixel data with specified format (abstract). (memory is handled internally)
Implemented in DiColorImage, DiMono1Image, DiMono2Image, and DiMonoImage. Referenced by DicomImage::getOutputData(). |
|
get number of bytes required for the rendered output of a single frame
Implemented in DiColorImage, and DiMonoImage. Referenced by DicomImage::getOutputDataSize(). |
|
get pixel data of specified plane (abstract). (memory is handled internally)
Implemented in DiColorImage, and DiMonoImage. Referenced by DicomImage::getOutputPlane(). |
|
get pointer to the object managing the overlay planes param idx index of overlay group (here: not used, since only applicable for monochrome images)
Reimplemented in DiMonoImage. Definition at line 306 of file diimage.h. Referenced by DicomImage::getOverlayCount(), DicomImage::getOverlayDescription(), DicomImage::getOverlayGroupNumber(), DicomImage::getOverlayLabel(), DicomImage::getOverlayMode(), DicomImage::hideAllOverlays(), DicomImage::hideOverlay(), DicomImage::isOverlayVisible(), DicomImage::placeOverlay(), DicomImage::removeOverlay(), DicomImage::showAllOverlays(), and DicomImage::showOverlay(). |
|
get pixel's height
Definition at line 162 of file diimage.h. References PixelHeight. Referenced by getColumnRowRatio(), and getRowColumnRatio(). |
|
get pixel's width
Definition at line 153 of file diimage.h. References PixelWidth. Referenced by getColumnRowRatio(), and getRowColumnRatio(). |
|
get polarity. possible values are EPP_Normal and EPP_Reverse
Definition at line 206 of file diimage.h. References Polarity. Referenced by DicomImage::getPolarity(). |
|
get representative frame
Definition at line 126 of file diimage.h. References RepresentativeFrame. Referenced by DicomImage::getRepresentativeFrame(). |
|
get pixel's rows/column ratio
Definition at line 171 of file diimage.h. References getPixelHeight(), and getPixelWidth(). Referenced by DicomImage::getHeightWidthRatio(). |
|
get number of rows
Definition at line 135 of file diimage.h. References Rows. Referenced by DicomImage::getHeight(). |
|
get status of the image object
Definition at line 99 of file diimage.h. References ImageStatus. Referenced by DicomImage::getStatus(). |
|
rotate current image (by steps of 90 degrees)
Reimplemented in DiColorImage, and DiMonoImage. |
|
set pixel's column/rows ratio
Referenced by DicomImage::setWidthHeightRatio(). |
|
set polarity.
Referenced by DicomImage::setPolarity(). |
|
set pixel's rows/column ratio
Referenced by DicomImage::setHeightWidthRatio(). |
|
update Image Pixel Module attributes in the given dataset. Removes smallest/largest pixel value and updates pixel aspect ratio as well as imager/pixel spacing. Used in writeXXXToDataset() routines.
Reimplemented in DiColorImage, and DiMonoImage. |
|
write pixel data to BMP file
Reimplemented in DiColorImage, and DiMonoImage. |
|
render pixel data of given frame and write image related attributes to DICOM dataset.
Referenced by DicomImage::writeFrameToDataset(). |
|
write current image and related attributes to DICOM dataset.
Implemented in DiColorImage, and DiMonoImage. Referenced by DicomImage::writeImageToDataset(). |
|
write pixel data to PPM file (abstract). pixel data is written in ASCII format.
Implemented in DiColorImage, and DiMonoImage. |
|
write pixel data to PPM file (abstract). pixel data is written in ASCII format.
Implemented in DiColorImage, and DiMonoImage. |
|
write pixel data to raw PPM file (abstract)
Implemented in DiColorImage, and DiMonoImage. |