Subversion Repositories seema-scanner

Rev

Rev 39 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 41
Line 1... Line 1...
1
#ifndef CODECPhaseShift_H
1
#ifndef AlgorithmPhaseShift_H
2
#define CODECPhaseShift_H
2
#define AlgorithmPhaseShift_H
3
 
3
 
4
#include "Codec.h"
4
#include "Algorithm.h"
5
 
5
 
6
class EncoderPhaseShift : public Encoder {
6
class AlgorithmPhaseShift : public Algorithm {
7
    public:
7
    public:
8
        EncoderPhaseShift(unsigned int _screenCols, unsigned int _screenRows, CodecDir _dir);
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;}
9
        // Encoding
14
        // Encoding
10
        cv::Mat getEncodingPattern(unsigned int depth);
15
        cv::Mat getEncodingPattern(unsigned int depth);
-
 
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);
11
    private:
18
    protected:
-
 
19
        unsigned int Nhorz, Nvert;
12
        std::vector<cv::Mat> patterns;
20
        std::vector<cv::Mat> patterns;
13
};
21
};
14
 
22
 
15
class DecoderPhaseShift : public Decoder {
-
 
16
    public:
-
 
17
        DecoderPhaseShift(CodecDir _dir, int _screenCols, int _screenRows);
-
 
18
        // Decoding
-
 
19
        virtual void getCorrespondences(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);
-
 
20
    private:
-
 
21
        int Nvert, Nhorz;
-
 
22
};
-
 
23
 
23
 
24
#endif // CODECPhaseShift_H
24
#endif // AlgorithmPhaseShift_H