#ifndef MYCVDIGITPROCFEATURES_H
#define MYCVDIGITPROCFEATURES_H

#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/features2d.hpp"

// Debug
#define DEBUG_DIGIT

// minimum matches
#define MIN_MATCHES 5

using namespace std;
using namespace cv;

class mycvDigitProcFeatures
{
private:
    vector<Mat> mImgsPatterns;
    vector<int> mNumPatterns;
public:
    mycvDigitProcFeatures();
    ~mycvDigitProcFeatures();

    void loadPattern(Mat &aSrc);
    float match(const Mat &aSrc, int aMethod);
};

#endif // MYCVDIGITPROCFEATURES_H
