Subversion Repositories seema-scanner

Rev

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

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