33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/ofstd/oftypes.h" 35 #include "dcmtk/ofstd/ofcast.h" 37 #include "dcmtk/dcmimgle/dimopxt.h" 38 #include "dcmtk/dcmimgle/diflipt.h" 71 :
DiMonoPixelTemplate<T>(pixel, OFstatic_cast(unsigned long, columns) * OFstatic_cast(unsigned long, rows) * frames),
74 if ((pixel != NULL) && (pixel->
getCount() > 0))
76 if (pixel->
getCount() == OFstatic_cast(
unsigned long, columns) * OFstatic_cast(
unsigned long, rows) * frames)
77 flip(OFstatic_cast(
const T *, pixel->
getData()), horz, vert);
79 DCMIMGLE_WARN(
"could not flip image ... corrupted data");
99 inline void flip(
const T *pixel,
106 if (this->
Data != NULL)
Template class to handle monochrome pixel data.
Template class to flip images (on pixel data level).
Abstract base class to handle monochrome pixel data.
void flipHorz(const T *src[], T *dest[])
flip source image horizontally and store result in destination image
T * Data
pointer to pixel data
virtual const void * getData() const =0
get pointer to pixel data (abstract).
void flip(const T *pixel, const int horz, const int vert)
choose flipping algorithm depending on given parameters
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
Template class to flip monochrome images (on pixel data level) horizontally and vertically.
DiMonoFlipTemplate(const DiMonoPixel *pixel, const Uint16 columns, const Uint16 rows, const Uint32 frames, const int horz, const int vert)
constructor
~DiMonoFlipTemplate()
destructor
void flipVert(const T *src[], T *dest[])
flip source image vertically and store result in destination image