5 #include "ILocalFeatureExtractor.h" 6 #include "SparseDictionary.h" 7 #include "SquareNeighborhood.h" Sparse Dictionary Learning class.
CSparseCoding(const Mat &img)
Constructor.
Sparse Coding feature extraction class.
SqNeighbourhood sqNeighbourhood(int leftGap, int rightGap, int upperGap, int lowerGap)
Initializes the square neighborhood structure.
static vec_mat_t get_v(const Mat &img, const Mat &D, SqNeighbourhood nbhd=sqNeighbourhood(3))
Extracts the sparse coding feature.
Square neighborhood structure.
virtual ~CSparseCoding(void)
Interface class for local feature extraction algorithms.
Mat getDictionary(void) const
Returns dictionary .
const Mat m_img
Container for the image, from which the features are to be extracted.