Subversion Repositories seema-scanner

Rev

Rev 167 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
41 jakw 1
#ifndef AlgorithmGrayCode_H
2
#define AlgorithmGrayCode_H
4 jakw 3
 
41 jakw 4
#include "Algorithm.h"
4 jakw 5
 
41 jakw 6
class AlgorithmGrayCode : public Algorithm {
4 jakw 7
    public:
70 jakw 8
        AlgorithmGrayCode(unsigned int _screenCols, unsigned int _screenRows);
41 jakw 9
    virtual ~AlgorithmGrayCode(){}
10
        unsigned int getNPatterns(){return N;}
11
        int getscreenCols(){return screenCols;}
12
        int getscreenRows(){return screenRows;}
4 jakw 13
        // Encoding
14
        cv::Mat getEncodingPattern(unsigned int depth);
41 jakw 15
        // Matching
207 flgw 16
        void get3DPoints(const SMCalibrationParameters &calibration, const std::vector<cv::Mat>& frames0, const std::vector<cv::Mat>& frames1, std::vector<cv::Point3f>& Q, std::vector<cv::Vec3b>& color);
41 jakw 17
    protected:
4 jakw 18
        std::vector<cv::Mat> patterns;
167 jakw 19
        unsigned int Nbits;
4 jakw 20
};
21
 
41 jakw 22
#endif // AlgorithmGrayCode_H