5 #include "IFeatureExtractor.h" 6 #include "Coordinate.h" 16 #include "SparseCoding.h" 17 #include "GlobalFeatureExtractor.h" 66 DllExport Mat
virtual get(void)
const {
return m_img; }
Coordinate feature depend on the pixel's ordinate (y-coordinate).
CCommonFeatureExtractor getBrightness(void) const
Extracts the brightness feature.
CCommonFeatureExtractor getHSV(void) const
Extracts the HSV feature.
CCommonFeatureExtractor getHue(void) const
Extracts the hue feature.
CCommonFeatureExtractor getCoordinate(coordinateType type=COORDINATE_ORDINATE) const
Extracts a coordinate feature.
CGlobalFeatureExtractor toGlobal(void) const
Allows for global-features extraction.
virtual Mat get(void) const
Extracts and returns the required feature.
CCommonFeatureExtractor getChannel(int channel) const
Extracts one channel from the source image.
CCommonFeatureExtractor blur(int R=2) const
Performs Gaussian blurring of the source image.
CCommonFeatureExtractor getIntensity(cv::Scalar weight=CV_RGB(0.333, 0.333, 0.333)) const
Extracts the intesity feature.
CCommonFeatureExtractor getDistance(byte threshold=16, double multiplier=4.0) const
Extracts the distance feature.
virtual Mat get(void) const
Extracts and returns the required feature.
CCommonFeatureExtractor getSparseCoding(const Mat &D, SqNeighbourhood nbhd=sqNeighbourhood(3)) const
Extracts the sparse coding feature.
CCommonFeatureExtractor autoContrast(void) const
Performs histogram stretching of the source image.
CCommonFeatureExtractor getVariance(SqNeighbourhood nbhd=sqNeighbourhood(5)) const
Extracts the variance feature.
virtual Mat get(void) const
Extracts and returns the required feature.
SqNeighbourhood sqNeighbourhood(int leftGap, int rightGap, int upperGap, int lowerGap)
Initializes the square neighborhood structure.
CCommonFeatureExtractor invert(void) const
Inverts the source image.
CCommonFeatureExtractor(const Mat &img)
Constructor.
CCommonFeatureExtractor getNDVI(byte midPoint=127) const
Extracts the NDVI (normalized difference vegetation index) feature.
virtual Mat get(void) const
Extracts and returns the required feature.
virtual Mat get(void) const
Extracts and returns the required feature.
CCommonFeatureExtractor getSIFT() const
Extracts the SIFT (scale-invariant feature transform) feature.
virtual Mat get(void) const
Extracts and returns the required feature.
Square neighborhood structure.
virtual ~CCommonFeatureExtractor(void)
CCommonFeatureExtractor getHOG(int nBins=9, SqNeighbourhood nbhd=sqNeighbourhood(5)) const
Extracts the HOG (<a href="http://en.wikipedia.org/wiki/Histogram_of_oriented_gradients"target="_blan...
virtual Mat get(void) const
Extracts and returns the required feature.
CCommonFeatureExtractor thresholding(byte threshold) const
Performs thresholding on the source image.
Interface class for global feature extraction algorithms.
virtual Mat get(void) const
Extracts and returns the required feature.
Common class, which unites feature extraction algorithms.
virtual Mat get(void) const
Extracts and returns the required feature.
ChannelsHSV
Channels in the HSV color space.
virtual Mat get(void) const
Extracts and returns the required feature.
CCommonFeatureExtractor reScale(SqNeighbourhood nbhd=sqNeighbourhood(5)) const
Extracts the scale feature.
Interface class for local feature extraction algorithms.
CCommonFeatureExtractor getSaturation(void) const
Extracts the saturation feature.
ChannelsRGB
Channels in the BGR color space.
const Mat m_img
Container for the image, from which the features are to be extracted.
CCommonFeatureExtractor getGradient(float mid=GRADIENT_MAX_VALUE) const
Extracts the gradient feature.
virtual Mat get(void) const
Extracts and returns the required feature.
coordinateType
Types of the coordinate feature.