33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmimage/dicopxt.h"
36 #include "dcmtk/dcmimgle/discalet.h"
71 const signed long left_pos,
72 const signed long top_pos,
73 const Uint16 src_cols,
74 const Uint16 src_rows,
75 const Uint16 dest_cols,
76 const Uint16 dest_rows,
79 const int interpolate)
80 :
DiColorPixelTemplate<T>(pixel, OFstatic_cast(unsigned long, dest_cols) * OFstatic_cast(unsigned long, dest_rows) * frames),
81 DiScaleTemplate<T>(3, columns, rows, left_pos, top_pos, src_cols, src_rows, dest_cols, dest_rows, frames, bits)
83 if ((pixel != NULL) && (pixel->
getCount() > 0))
85 if (pixel->
getCount() == OFstatic_cast(
unsigned long, columns) * OFstatic_cast(
unsigned long, rows) * frames)
86 scale(OFstatic_cast(
const T **, OFconst_cast(
void *, pixel->
getData())), interpolate);
88 DCMIMAGE_WARN(
"could not scale image ... corrupted data");
107 inline void scale(
const T *pixel[3],
108 const int interpolate)
110 if (this->
Init(pixel))