Subversion Repositories seema-scanner

Rev

Rev 36 | Rev 41 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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