Subversion Repositories seema-scanner

Rev

Rev 184 | Rev 207 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 184 Rev 187
Line 113... Line 113...
113
// Phase unwrapping by means of a phase cue
113
// Phase unwrapping by means of a phase cue
114
inline cv::Mat unwrapWithCue(const cv::Mat up, const cv::Mat upCue, float nPhases){
114
inline cv::Mat unwrapWithCue(const cv::Mat up, const cv::Mat upCue, float nPhases){
115
 
115
 
116
    const float pi = M_PI;
116
    const float pi = M_PI;
117
 
117
 
118
    // Determine number of jumps
118
    // Determine fringe order
119
    cv::Mat P = (upCue*nPhases-up)/(2.0*pi);
119
    cv::Mat P = (upCue*nPhases-up)/(2.0*pi);
120
 
120
 
121
    // Round to integers
121
    // Round to integers
122
    P.convertTo(P, CV_8U);
122
    P.convertTo(P, CV_8U);
123
    P.convertTo(P, CV_32F);
123
    P.convertTo(P, CV_32F);