33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/ofstd/oftypes.h" 35 #include "dcmtk/ofstd/ofcast.h" 37 #include "dcmtk/ofstd/ofbmanip.h" 39 #include "dcmtk/dcmimgle/diutils.h" 78 Bits(((bits < 1) || (bits > OFstatic_cast(int, bitsof(T)))) ? OFstatic_cast(int, bitsof(T)) : bits)
96 const unsigned long count = OFstatic_cast(
unsigned long,
Dest_X) * OFstatic_cast(
unsigned long,
Dest_Y) *
Frames;
97 for (
int j = 0; j <
Planes; ++j)
109 const unsigned long count = OFstatic_cast(
unsigned long,
Dest_X) * OFstatic_cast(
unsigned long,
Dest_Y) *
Frames;
110 for (
int j = 0; j <
Planes; ++j)
120 const unsigned long count = OFstatic_cast(
unsigned long,
Dest_X) * OFstatic_cast(
unsigned long,
Dest_Y) *
Frames;
121 for (
int j = 0; j <
Planes; ++j)
const int Bits
number of bits per plane/pixel
int Planes
number of planes
Uint16 Src_X
width of source image
void fillPixel(T *dest[], const T value)
fill pixel data with specified value
void clearPixel(T *dest[])
clear pixel data (set values to 0)
Template class building the base for other transformations.
DiTransTemplate(const int planes, const Uint16 src_x, const Uint16 src_y, const Uint16 dest_x, const Uint16 dest_y, const Uint32 frames, const int bits=0)
constructor
const Uint32 Frames
number of frames
virtual ~DiTransTemplate()
destructor
A template class for bit manipulations.
Uint16 Src_Y
height of source image
const Uint16 Dest_Y
height of destination image
void copyPixel(const T *src[], T *dest[])
copy pixel data
const Uint16 Dest_X
width of destination image