42 return sizeof (*
this);
59 if (rStart < 0) rStart = 0;
61 if (cStart < 0) cStart = 0;
66 for (r = rStart; r <= rEnd; r++)
70 for (c = cStart; c <= cEnd; c++)
80 for (r = rStart; r <= rEnd; r++)
86 for (c = cStart; c <= cEnd; c++)
109 if (rStart < 0) rStart = 0;
111 if (cStart < 0) cStart = 0;
114 int backgroundCount = 0;
118 for (r = rStart; r <= rEnd; r++)
122 for (c = cStart; c <= cEnd; c++)
132 for (r = rStart; r <= rEnd; r++)
138 for (c = cStart; c <= cEnd; c++)
162 if (rStart < 0) rStart = 0;
164 if (cStart < 0) cStart = 0;
172 for (r = rStart; r <= rEnd; r++)
176 for (c = cStart; c <= cEnd; c++)
181 pixelValueTotal += rowPtr[c];
189 for (r = rStart; r <= rEnd; r++)
194 pixelValueTotal +=
srcGreen[r][col];
198 for (c = cStart; c <= cEnd; c++)
203 pixelValueTotal +=
srcGreen[r][col];
211 return (
uchar)(0.5f + (
float)pixelValueTotal / (
float)neighborCount);
unsigned __int16 kkuint16
16 bit unsigned integer.
bool BackgroundPixel(uchar pixel) const
kkint32 backgroundCountTH
kkint32 MemoryConsumedEstimated()
MorphOpStruct(StructureType _structure, kkuint16 _structureSize)
unsigned char uchar
Unsigned character.
bool Fit(kkint32 row, kkint32 col) const
bool FitBackgroundCount(kkint32 row, kkint32 col) const
kkint32 foregroundCountTH
Base class for all Morphological operations.
bool ForegroundPixel(uchar pixel) const
uchar HitForegroundCount(kkint32 row, kkint32 col) const