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