![]() |
KSquare Utilities
|
Operator that will create a Convex Hull of a supplied image. More...
#include <ConvexHull.h>
Inheritance diagram for KKB::ConvexHull:Public Member Functions | |
| ConvexHull () | |
| virtual | ~ConvexHull () |
| kkint32 | ConvexArea () |
| void | Draw (Raster &output) |
| RasterPtr | Filter (const Raster &src) |
| Returns a image that represents the convex-hull of the 'src' image. param[in] src Source image that convex-hull is to be found for. More... | |
| RasterPtr | Filter (const Raster &src, RasterPtr dest) |
| virtual OperationType | Operation () const |
| virtual RasterPtr | PerformOperation (RasterConstPtr _image) |
| void | Store (const Raster &input) |
| Build list of the upper and lower points in the image. More... | |
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 |
Operator that will create a Convex Hull of a supplied image.
Definition at line 42 of file ConvexHull.h.
| ConvexHull::ConvexHull | ( | ) |
Definition at line 34 of file ConvexHull.cpp.
References KKB::MorphOp::MorphOp().
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
|
virtual |
Definition at line 46 of file ConvexHull.cpp.
| kkint32 ConvexHull::ConvexArea | ( | ) |
Definition at line 189 of file ConvexHull.cpp.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void ConvexHull::Draw | ( | Raster & | output | ) |
Definition at line 438 of file ConvexHull.cpp.
References KKB::Point::Col(), KKB::Point::Row(), and KKB::Raster::SetPixelValue().
Referenced by Filter().
Returns a image that represents the convex-hull of the 'src' image. param[in] src Source image that convex-hull is to be found for.
Definition at line 88 of file ConvexHull.cpp.
References Draw(), KKB::Raster::Height(), KKB::Raster::Raster(), KKB::MorphOp::SetSrcRaster(), Store(), and KKB::Raster::Width().
Referenced by PerformOperation().
Definition at line 128 of file ConvexHull.cpp.
References Draw(), KKB::Raster::Height(), KKB::Raster::ReSize(), KKB::MorphOp::SetSrcRaster(), KKB::MorphOp::srcHeight, KKB::MorphOp::srcWidth, Store(), and KKB::Raster::Width().
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
|
inlinevirtual |
Implements KKB::MorphOp.
Definition at line 49 of file ConvexHull.h.
References KKB::MorphOp::ConvexHull.
|
virtual |
Definition at line 73 of file ConvexHull.cpp.
References Filter(), KKB::MorphOp::SetSrcRaster(), and KKB::MorphOp::srcRaster.
| void ConvexHull::Store | ( | const Raster & | input | ) |
Build list of the upper and lower points in the image.
for each column in the image where there is at least one foreground pixel will add one point to 'upperPoints' for the pixel with the smallest row and one point to 'lowerPoints' for the pixel with the largest row.
| [in] | input | Source image that we are to generate a Convex Hull for. |
for each column in the image where there is at least one foreground pixel will add one point to 'upperPoints' for the pixel with the smallest row and one point to 'lowerPoints' for the pixel with the largest row.
| [in] | input | Source image that we are to generate a convex-hull for. |
Definition at line 738 of file ConvexHull.cpp.
References KKB::MorphOp::ForegroundPixel(), KKB::Raster::Height(), KKB::Point::Point(), KKB::Raster::Rows(), and KKB::Raster::Width().
Referenced by Filter().