www.pudn.com > Real-Time-Structured-Light.zip > CodecPhaseShift3FastWrap.h, change:2016-09-19,size:812b


#ifndef CODECPhaseShift3FastWrap_H
#define CODECPhaseShift3FastWrap_H

#include "Codec.h"

class EncoderPhaseShift3FastWrap : public Encoder {
    public:
        EncoderPhaseShift3FastWrap(unsigned int _screenCols, unsigned int _screenRows, CodecDir _dir);
        // Encoding
        cv::Mat getEncodingPattern(unsigned int depth);
    private:
        std::vector<cv::Mat> patterns;
};

class DecoderPhaseShift3FastWrap : public Decoder {
    public:
        DecoderPhaseShift3FastWrap(unsigned int _screenCols, unsigned int _screenRows, CodecDir _dir);
        // Decoding
        void setFrame(unsigned int depth, cv::Mat frame);
        void decodeFrames(cv::Mat &up, cv::Mat &vp, cv::Mat &mask, cv::Mat &shading);
    private:
        std::vector<cv::Mat> frames;
};

#endif // CODECPhaseShift3FastWrap_H