cvUndistort2 () and cvRemap () crash

后端 未结 2 1563
情书的邮戳
情书的邮戳 2021-01-15 23:46

I was doing example 11-1 of \"Learning OpenCV\" by Bradski. Unfortunately the given example doesn\'t work on my computer.

The program is supposed to calibrate camera

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-16 00:51

    try

    cvRemap( t, image, mapx, mapy ); 
    cvUndistort2(t ,image , intrinsic, distortion);
    

    instead of

    cvRemap( image, t, mapx, mapy ); // Undistort image
           cvUndistort2(image, t, intrinsic, distortion);
    

提交回复
热议问题