26 pixelValueMin (_pixelValueMin),
27 pixelValueMax (_pixelValueMax)
41 return sizeof (*
this);
57 return ((
srcGreen[row][col] >= pixelValueMin) && (
srcGreen[row][col] <= pixelValueMin));
69 kkint32 binarizedForegroundPixelCount = 0;
75 uchar* destRow = NULL;
81 destRow = destGreen[r];
86 uchar srcCh = srcRow[c];
87 if ((srcCh >= pixelValueMin) && (srcCh <= pixelValueMax))
90 ++binarizedForegroundPixelCount;
94 destRow[c] = backgroundPixelValue;
101 return binarizedRaster;
void SetSrcRaster(RasterConstPtr _srcRaster)
uchar BackgroundPixelValue() const
unsigned __int16 kkuint16
16 bit unsigned integer.
A class that is used by to represent a single image in memory.
Raster(kkint32 _height, kkint32 _width)
Constructs a blank image with given dimensions; all pixels will be initialized to 0...
unsigned char uchar
Unsigned character.
virtual ~MorphOpBinarize()
virtual RasterPtr PerformOperation(RasterConstPtr _image)
Base class for all Morphological operations.
MorphOpBinarize(kkuint16 _pixelValueMin, kkuint16 _pixelValueMax)
kkint32 MemoryConsumedEstimated()
void ForegroundPixelCount(kkint32 _foregroundPixelCount)