5 #include "IFeatureExtractor.h" float getOpacity(void) const
Returns the weighted-mean transparancy of the source image.
float getCompactness(void)
Returns the compactness of the object in the source image.
int getArea(void)
Returns the number of non-zero pixels in the source image.
float getCompactness(const Mat &img)
Returns the compactness of the object in the source image.
float getOpacity(const Mat &img)
Returns the weighted-mean transparancy of the source image.
float getVariance(void)
Retunrs the variance of the source image.
size_t getNumCircles(int threshold1=100, int threshold2=30) const
Returns the number of circles in the source image.
size_t getNumLines(int threshold1=100, int threshold2=50) const
Returns the number of staight lines in the image.
CGlobalFeatureExtractor(const Mat &img)
Constructor.
int getArea(const Mat &img)
Returns the number of non-zero pixels in the source image.
virtual ~CGlobalFeatureExtractor(void)
int getPerimeter(const Mat &img)
Returns the perimeter of an object in the source image.
float getVariance(const Mat &img)
Retunrs the variance of the source image.
Interface class for global feature extraction algorithms.
size_t getNumCircles(const Mat &img, int threshold1, int threshold2)
Returns the number of circles in the source image.
int getPerimeter(void)
Returns the perimeter of an object in the source image.
size_t getNumLines(const Mat &img, int threshold1, int threshold2)
Returns the number of staight lines in the image.
const Mat m_img
Container for the image, from which the features are to be extracted.
Interface class for feature extraction algorithms.