33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmimage/dicopxt.h"
36 #include "dcmtk/dcmimgle/diinpx.h"
45 template<
class T1,
class T2>
63 const unsigned long planeSize,
67 if ((pixel != NULL) && (this->
Count > 0) && (status == EIS_Normal))
87 const unsigned long planeSize,
90 if (this->
Init(pixel))
97 register const T1 *p = pixel;
111 register const T1 *k;
113 register unsigned long l;
114 register unsigned long i = 0;
118 const unsigned long iStart = i;
120 const T1 *kStart = p + 3 * planeSize;
122 for (
int j = 0; j < 3; ++j)
124 q = this->
Data[j] + iStart;
128 for (l = planeSize, i = iStart; (l != 0) && (i < count); --l, ++i)
129 *(q++) = maxvalue - removeSign(*(p++), offset) - removeSign(*(k++), offset);
139 register unsigned long i;
140 for (i = 0; i < count; ++i)
143 for (j = 0; j < 3; ++j)
144 this->
Data[j][i] = maxvalue - removeSign(*(p++), offset) - removeSign(k, offset);