adding c++ interface to the datamtrix codes of j.

This commit is contained in:
Ethan Rublee
2011-05-25 00:23:50 +00:00
parent 89b5f40ce3
commit 355ad2993a
4 changed files with 200 additions and 24 deletions

View File

@@ -690,7 +690,14 @@ protected:
std::vector<std::string> objectClassNames;
std::vector<DOTTemplate> dotTemplates;
};
struct CV_EXPORTS DataMatrixCode {
char msg[4]; //TODO std::string
Mat original;
Point corners[4]; //TODO vector
};
CV_EXPORTS void findDataMatrix(const Mat& image, std::vector<DataMatrixCode>& codes);
void drawDataMatrixCodes(const std::vector<DataMatrixCode>& codes, Mat& drawImage);
}
/****************************************************************************************\
@@ -699,15 +706,14 @@ protected:
typedef unsigned char uint8;
class CV_EXPORTS DataMatrixCode {
public:
struct CV_EXPORTS CvDataMatrixCode {
char msg[4];
CvMat *original;
CvMat *corners;
};
#include <deque>
CV_EXPORTS std::deque<DataMatrixCode> cvFindDataMatrix(CvMat *im);
CV_EXPORTS std::deque<CvDataMatrixCode> cvFindDataMatrix(CvMat *im);
#endif
#endif