33 #include "dcmtk/config/osconfig.h" 35 #include "dcmtk/dcmimage/dicopxt.h" 36 #include "dcmtk/dcmimgle/diflipt.h" 69 :
DiColorPixelTemplate<T>(pixel, OFstatic_cast(unsigned long, columns) * OFstatic_cast(unsigned long, rows) * frames),
72 if ((pixel != NULL) && (pixel->
getCount() > 0))
74 if (pixel->
getCount() == OFstatic_cast(
unsigned long, columns) * OFstatic_cast(
unsigned long, rows) * frames)
75 flip(OFstatic_cast(
const T **, OFconst_cast(
void *, pixel->
getData())), horz, vert);
77 DCMIMAGE_WARN(
"could not flip image ... corrupted data");
97 inline void flip(
const T *pixel[3],
101 if (this->
Init(pixel))
~DiColorFlipTemplate()
destructor
Template class to flip images (on pixel data level).
void flipHorz(const T *src[], T *dest[])
flip source image horizontally and store result in destination image
virtual const void * getData() const =0
get pointer to pixel data (abstract).
DiColorFlipTemplate(const DiColorPixel *pixel, const Uint16 columns, const Uint16 rows, const Uint32 frames, const int horz, const int vert)
constructor
T * Data[3]
pointer to pixel data (3 components)
Template class to handle color pixel data.
Abstract base class to handle color pixel data.
void flipHorzVert(const T *src[], T *dest[])
flip source image horizontally and vertically and store result in destination image ...
unsigned long getCount() const
get number of pixels
void flip(const T *pixel[3], const int horz, const int vert)
choose flipping algorithm depending on given parameters
void flipVert(const T *src[], T *dest[])
flip source image vertically and store result in destination image
Template class to flip color images (on pixel data level) horizontally and vertically.
int Init(const void *pixel)
initialize internal memory