Subversion Repositories seema-scanner

Rev

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

Rev 247 Rev 251
Line 238... Line 238...
238
            // Gray-scale and remap/rectify
238
            // Gray-scale and remap/rectify
239
            std::vector<cv::Mat> frames0Rect(N);
239
            std::vector<cv::Mat> frames0Rect(N);
240
 
240
 
241
            for(unsigned int i=0; i<N; i++){
241
            for(unsigned int i=0; i<N; i++){
242
                cv::Mat temp;
242
                cv::Mat temp;
243
                if(frames1[i].depth() == CV_8U)
243
                if(frames0[i].depth() == CV_8U)
244
                    cv::cvtColor(frames1[i], temp, CV_BayerBG2GRAY);
244
                    cv::cvtColor(frames0[i], temp, CV_BayerBG2GRAY);
245
                else
245
                else
246
                    temp = frames1[i];
246
                    temp = frames0[i];
247
                cv::remap(temp, frames0Rect[i],
247
                cv::remap(temp, frames0Rect[i],
248
                          stereoRect.map0X, stereoRect.map0Y,
248
                          stereoRect.map0X, stereoRect.map0Y,
249
                          CV_INTER_LINEAR);
249
                          CV_INTER_LINEAR);
250
            }
250
            }
251
 
251