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


#ifndef PSTOOLS_H
#define PSTOOLS_H

// Tools for phase shifting profilometry

#include <opencv2/opencv.hpp>

namespace pstools {

    cv::Mat computePhaseVector(unsigned int length, float phase, float pitch);
    cv::Mat computePhaseVectorDithered(unsigned int length, float phase, float pitch);
    cv::Mat getPhase(const cv::Mat I1, const cv::Mat I2, const cv::Mat I3);
    cv::Mat getMagnitude(const cv::Mat I1, const cv::Mat I2, const cv::Mat I3);
    std::vector<cv::Mat> getDFTComponents(const std::vector<cv::Mat> frames);
    cv::Mat unwrapWithCue(const cv::Mat up, const cv::Mat upCue, unsigned int nPhases);
}

#endif // PSTOOLS_H