Subversion Repositories seema-scanner

Rev

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

Rev Author Line No. Line
41 jakw 1
#ifndef AlgorithmPhaseShift_H
2
#define AlgorithmPhaseShift_H
4 jakw 3
 
41 jakw 4
#include "Algorithm.h"
4 jakw 5
 
41 jakw 6
class AlgorithmPhaseShift : public Algorithm {
4 jakw 7
    public:
41 jakw 8
        AlgorithmPhaseShift(unsigned int _screenCols, unsigned int _screenRows, CodingDir _dir = CodingDirHorizontal);
9
    virtual ~AlgorithmPhaseShift(){}
10
        unsigned int getNPatterns(){return N;}
11
        int getscreenCols(){return screenCols;}
12
        int getscreenRows(){return screenRows;}
13
        CodingDir getDir(){return dir;}
4 jakw 14
        // Encoding
15
        cv::Mat getEncodingPattern(unsigned int depth);
41 jakw 16
        // Matching
17
        void getCorrespondences(SMCalibrationParameters calibration, const std::vector<cv::Mat>& frames0, const std::vector<cv::Mat>& frames1, std::vector<cv::Point2f>& q0, std::vector<cv::Point2f>& q1, std::vector<cv::Point3f>& color);
18
    protected:
19
        unsigned int Nhorz, Nvert;
4 jakw 20
        std::vector<cv::Mat> patterns;
21
};
22
 
23
 
41 jakw 24
#endif // AlgorithmPhaseShift_H