33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/ofstd/ofbmanip.h" 35 #include "dcmtk/ofstd/ofcast.h" 37 #include "dcmtk/dcmimgle/dimopxt.h" 61 const unsigned long fstart,
62 const unsigned long fcount,
63 const unsigned long fsize)
66 if ((pixel != NULL) && (pixel->
getCount() > 0))
68 if ((pixel->
getCount() > fstart * fsize) && (pixel->
getCount() >= (fstart + fcount) * fsize))
69 copy(OFstatic_cast(
const T *, pixel->
getData()) + fstart * fsize);
88 inline void copy(
const T *pixel)
93 if (this->
Data != NULL)
DiMonoCopyTemplate(const DiMonoPixel *pixel, const unsigned long fstart, const unsigned long fcount, const unsigned long fsize)
constructor
Template class to handle monochrome pixel data.
Abstract base class to handle monochrome pixel data.
T * Data
pointer to pixel data
~DiMonoCopyTemplate()
destructor
virtual const void * getData() const =0
get pointer to pixel data (abstract).
void determineMinMax(T minvalue=0, T maxvalue=0, const int mode=0x1)
determine minimum and maximum pixel values
static void copyMem(const T *src, T *dest, const unsigned long count)
copies specified number of elements from source to destination.
unsigned long getCount() const
get number of pixels
Template class to copy monochrome pixel data.
void copy(const T *pixel)
copy specified amount of pixel data