1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include <opencv/cv.h>
- #include <opencv/cxcore.h>
- #include <opencv/highgui.h>
- #include <opencv2/opencv.hpp>
- #include <zxing/LuminanceSource.h>
- using namespace zxing;
- class CGrayImageSource:public LuminanceSource
- {
- public:
- CGrayImageSource(IplImage* gray_img =NULL);
- ~CGrayImageSource(void);
- virtual int getWidth() const;
- virtual int getHeight() const;
- virtual unsigned char* getRow( int y, unsigned char* row );
- virtual ArrayRef<char> getRow( int y, ArrayRef<char> row ) const;
- virtual unsigned char* getMatrix();
- virtual ArrayRef<char> getMatrix() const;
- IplImage* m_pImg;
- };
|