Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. stereoRectify( M1, D1, M2, D2, img_size, R, T, R1, R2, P1, P2, Q, CALIB_ZERO_DISPARITY, -1, img_size, &roi1, &roi2 );
  2. Mat map11, map12, map21, map22;
  3. initUndistortRectifyMap(M1, D1, R1, P1, img_size, CV_16SC2, map11, map12);
  4. initUndistortRectifyMap(M2, D2, R2, P2, img_size, CV_16SC2, map21, map22);
  5.  
  6. Mat img1r, img2r;
  7. remap(img1, img1r, map11, map12, INTER_LINEAR);
  8. remap(img2, img2r, map21, map22, INTER_LINEAR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement