![]() |
KSquare Utilities
|
#include <MorphOpStruct.h>
Inheritance diagram for KKB::MorphOpStruct:Public Member Functions | |
| MorphOpStruct (StructureType _structure, kkuint16 _structureSize) | |
| virtual | ~MorphOpStruct () |
| void | BackgroundCountTH (kkint32 _backgroundCountTH) |
| void | ForegroundCountTH (kkint32 _foregroundCountTH) |
| kkint32 | MemoryConsumedEstimated () |
| virtual OperationType | Operation () const |
| virtual RasterPtr | PerformOperation (RasterConstPtr _image)=0 |
Public Member Functions inherited from KKB::MorphOp | |
| MorphOp () | |
| virtual | ~MorphOp () |
| OperationType | OperationTypeFromStr (const KKB::KKStr &_operationStr) |
| KKB::KKStr | OperationTypeToStr (OperationType _operation) |
| virtual RasterPtr | PerformOperation (Raster const *_image)=0 |
Protected Member Functions | |
| bool | Fit (kkint32 row, kkint32 col) const |
| bool | FitBackgroundCount (kkint32 row, kkint32 col) const |
| uchar | HitForegroundCount (kkint32 row, kkint32 col) const |
Protected Member Functions inherited from KKB::MorphOp | |
| bool | BackgroundPixel (uchar pixel) const |
| bool | BackgroundPixel (kkint32 row, kkint32 col) const |
| bool | ForegroundPixel (uchar pixel) const |
| bool | ForegroundPixel (kkint32 row, kkint32 col) const |
| void | SetSrcRaster (RasterConstPtr _srcRaster) |
Protected Attributes | |
| kkint32 | backgroundCountTH |
| kkint32 | foregroundCountTH |
| StructureType | structure |
| kkuint16 | structureSize |
Protected Attributes inherited from KKB::MorphOp | |
| uchar | backgroundPixelTH |
| uchar | backgroundPixelValue |
| uchar *const * | srcBlue |
| uchar const * | srcBlueArea |
| bool | srcColor |
| uchar *const * | srcGreen |
| uchar const * | srcGreenArea |
| kkint32 | srcHeight |
| RasterConstPtr | srcRaster |
| uchar *const * | srcRed |
| uchar const * | srcRedArea |
| kkint32 | srcWidth |
Additional Inherited Members | |
Public Types inherited from KKB::MorphOp | |
| enum | MaskTypes : int { MaskTypes::CROSS3 = 0, MaskTypes::CROSS5 = 1, MaskTypes::SQUARE3 = 2, MaskTypes::SQUARE5 = 3, MaskTypes::SQUARE7 = 4, MaskTypes::SQUARE9 = 5, MaskTypes::SQUARE11 = 6 } |
| enum | OperationType { OperationType::Null, OperationType::Binarize, OperationType::BmiFiltering, OperationType::ConvexHull, OperationType::Dilation, OperationType::Erosion, OperationType::MaskExclude, OperationType::SobelEdgeDetection, OperationType::Stretcher } |
| enum | StructureType : int { StructureType::Null, StructureType::stCross, StructureType::stSquare } |
Static Public Member Functions inherited from KKB::MorphOp | |
| static kkint32 | Biases (MaskTypes mt) |
| static StructureType | MaskShapes (MaskTypes mt) |
Static Protected Attributes inherited from KKB::MorphOp | |
| static kkint32 | biases [] |
| static StructureType | maskShapes [] |
Definition at line 24 of file MorphOpStruct.h.
| MorphOpStruct::MorphOpStruct | ( | StructureType | _structure, |
| kkuint16 | _structureSize | ||
| ) |
Definition at line 21 of file MorphOpStruct.cpp.
References backgroundCountTH, foregroundCountTH, KKB::MorphOp::MorphOp(), structure, and structureSize.
Referenced by KKB::MorphOpDilation::MorphOpDilation(), and KKB::MorphOpErosion::MorphOpErosion().
|
virtual |
Definition at line 34 of file MorphOpStruct.cpp.
|
inline |
Definition at line 39 of file MorphOpStruct.h.
References backgroundCountTH.
Referenced by KKB::Raster::Erosion().
Definition at line 49 of file MorphOpStruct.cpp.
References KKB::MorphOp::BackgroundPixel(), KKB::MorphOp::srcGreen, KKB::MorphOp::srcHeight, KKB::MorphOp::srcWidth, structure, structureSize, and KKB::MorphOp::stSquare.
Referenced by KKB::MorphOpErosion::PerformOperation().
Definition at line 99 of file MorphOpStruct.cpp.
References backgroundCountTH, KKB::MorphOp::BackgroundPixel(), KKB::MorphOp::srcGreen, KKB::MorphOp::srcHeight, KKB::MorphOp::srcWidth, structure, structureSize, and KKB::MorphOp::stSquare.
Referenced by KKB::MorphOpErosion::PerformOperation().
|
inline |
Definition at line 40 of file MorphOpStruct.h.
References foregroundCountTH.
Referenced by KKB::Raster::Dilation().
Definition at line 152 of file MorphOpStruct.cpp.
References foregroundCountTH, KKB::MorphOp::ForegroundPixel(), KKB::MorphOp::srcGreen, KKB::MorphOp::srcHeight, KKB::MorphOp::srcWidth, structure, structureSize, and KKB::MorphOp::stSquare.
Referenced by KKB::MorphOpDilation::PerformOperation().
| kkint32 MorphOpStruct::MemoryConsumedEstimated | ( | ) |
Definition at line 40 of file MorphOpStruct.cpp.
|
inlinevirtual |
Implements KKB::MorphOp.
Reimplemented in KKB::MorphOpDilation, and KKB::MorphOpErosion.
Definition at line 33 of file MorphOpStruct.h.
References KKB::MorphOp::Erosion.
|
pure virtual |
Implemented in KKB::MorphOpDilation, and KKB::MorphOpErosion.
|
protected |
If greater than zero; then pixel must have at least that many neighbors to be considered a fit.
Definition at line 57 of file MorphOpStruct.h.
Referenced by BackgroundCountTH(), FitBackgroundCount(), MorphOpStruct(), and KKB::MorphOpErosion::PerformOperation().
|
protected |
Definition at line 58 of file MorphOpStruct.h.
Referenced by ForegroundCountTH(), HitForegroundCount(), and MorphOpStruct().
|
protected |
Definition at line 56 of file MorphOpStruct.h.
Referenced by Fit(), FitBackgroundCount(), HitForegroundCount(), and MorphOpStruct().
|
protected |
Definition at line 59 of file MorphOpStruct.h.
Referenced by Fit(), FitBackgroundCount(), HitForegroundCount(), and MorphOpStruct().