33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/ofstd/ofcast.h"
36 #include "dcmtk/dcmimgle/dimopxt.h"
37 #include "dcmtk/dcmimgle/discalet.h"
38 #include "dcmtk/dcmimgle/didispfn.h"
74 const signed long left_pos,
75 const signed long top_pos,
76 const Uint16 src_cols,
77 const Uint16 src_rows,
78 const Uint16 dest_cols,
79 const Uint16 dest_rows,
82 const int interpolate,
84 :
DiMonoPixelTemplate<T>(pixel, OFstatic_cast(unsigned long, dest_cols) * OFstatic_cast(unsigned long, dest_rows) * frames),
85 DiScaleTemplate<T>(1, columns, rows, left_pos, top_pos, src_cols, src_rows, dest_cols, dest_rows, frames, bits)
87 if ((pixel != NULL) && (pixel->
getCount() > 0))
89 if (pixel->
getCount() == OFstatic_cast(
unsigned long, columns) * OFstatic_cast(
unsigned long, rows) * frames)
94 DCMIMGLE_WARN(
"could not scale image ... corrupted data");
116 const unsigned int bits,
117 const int interpolate,
123 if (this->
Data != NULL)