Subversion Repositories seema-scanner

Rev

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

Rev 187 Rev 207
Line 109... Line 109...
109
    return phase;
109
    return phase;
110
 
110
 
111
}
111
}
112
 
112
 
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 fringe order
118
    // Determine fringe order
119
    cv::Mat P = (upCue*nPhases-up)/(2.0*pi);
119
    cv::Mat P = (upCue*nPhases-up)/(2.0*pi);
Line 130... Line 130...
130
 
130
 
131
    return upUnwrapped;
131
    return upUnwrapped;
132
}
132
}
133
 
133
 
134
// Absolute phase and magnitude from N frames
134
// Absolute phase and magnitude from N frames
135
inline std::vector<cv::Mat> getDFTComponents(const std::vector<cv::Mat> frames){
135
inline std::vector<cv::Mat> getDFTComponents(const std::vector<cv::Mat> &frames){
136
 
136
 
137
    unsigned int N = frames.size();
137
    unsigned int N = frames.size();
138
 
138
 
139
//    std::vector<cv::Mat> framesReverse = frames;
139
//    std::vector<cv::Mat> framesReverse = frames;
140
//    std::reverse(framesReverse.begin(), framesReverse.end());
140
//    std::reverse(framesReverse.begin(), framesReverse.end());