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
4 jakw 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:
36 jakw 18
        DecoderGrayCode(CodecDir _dir, int _screenCols, int _screenRows);
4 jakw 19
        // Decoding
36 jakw 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);
4 jakw 21
    private:
27 jakw 22
        int Nvert, Nhorz;
4 jakw 23
};
24
 
25
#endif // CodecGrayCode_H