33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmimage/dicopxt.h"
36 #include "dcmtk/dcmimgle/dirotat.h"
65 const Uint16 src_cols,
66 const Uint16 src_rows,
67 const Uint16 dest_cols,
68 const Uint16 dest_rows,
71 :
DiColorPixelTemplate<T>(pixel, OFstatic_cast(unsigned long, dest_cols) * OFstatic_cast(unsigned long, dest_rows) * frames),
74 if ((pixel != NULL) && (pixel->
getCount() > 0))
76 if (pixel->
getCount() == OFstatic_cast(
unsigned long, src_cols) * OFstatic_cast(
unsigned long, src_rows) * frames)
77 rotate(OFstatic_cast(
const T **, OFconst_cast(
void *, pixel->
getData())), degree);
79 DCMIMAGE_WARN(
"could not rotate image ... corrupted data");
98 inline void rotate(
const T *pixel[3],
101 if (this->
Init(pixel))
105 else if (degree == 180)
107 else if (degree == 270)