Subversion Repositories seema-scanner

Rev

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

Rev 134 Rev 136
Line 232... Line 232...
232
    // amplitude remaps
232
    // amplitude remaps
233
    cv::Mat amplitude0Rect, amplitude1Rect;
233
    cv::Mat amplitude0Rect, amplitude1Rect;
234
    cv::remap(amplitude0, amplitude0Rect, map0X, map0Y, CV_INTER_LINEAR);
234
    cv::remap(amplitude0, amplitude0Rect, map0X, map0Y, CV_INTER_LINEAR);
235
    cv::remap(amplitude1, amplitude1Rect, map1X, map1Y, CV_INTER_LINEAR);
235
    cv::remap(amplitude1, amplitude1Rect, map1X, map1Y, CV_INTER_LINEAR);
236
 
236
 
237
cvtools::writeMat(amplitude0Rect, "amplitude0Rect.mat", "amplitude0Rect");
237
//cvtools::writeMat(amplitude0Rect, "amplitude0Rect.mat", "amplitude0Rect");
238
cvtools::writeMat(amplitude1Rect, "amplitude1Rect.mat", "amplitude1Rect");
238
//cvtools::writeMat(amplitude1Rect, "amplitude1Rect.mat", "amplitude1Rect");
239
 
239
 
240
    // color debayer and remap
240
    // color debayer and remap
241
    cv::Mat color0Rect, color1Rect;
241
    cv::Mat color0Rect, color1Rect;
242
//    frames0[0].convertTo(color0Rect, CV_8UC1, 1.0/256.0);
242
//    frames0[0].convertTo(color0Rect, CV_8UC1, 1.0/256.0);
243
    cv::cvtColor(frames0[0], color0Rect, CV_BayerBG2RGB);
243
    cv::cvtColor(frames0[0], color0Rect, CV_BayerBG2RGB);