CODERNER

  • 홈

OpenCV 2

Opencv large FoV image undistortion

카메라 intrinsic calibration을 마치면 보통 K matrix와 distortion coefficient를 얻는다. K matrix의 경우, fx, fy, cx, cy로 구성된 3x3 matrix일 것이고, distortion coefficient는 일반적인 화각의 카메라라면 5개, 그 외 다른 광각이라면 최대 14개까지 나올 것이다. 그리고 이 값을 사용해서 다음과 같은 함수를 통해 이미지의 왜곡을 펼치고 왜곡이 보정된 이미지 및 포인트를 사용하게 된다. image_ud = cv2.undistort(image, K, dist) point_ud = cv2.undistortPoints(img_pt, K, dist, P=K) 하지만 광각 이미지의 경우, 위 함수를 통해 얻은 undistorte..

Knowhow/Vision 2022.06.16

Opencv 광각 (Large FoV) 카메라 intrinsic calibration

Opencv 를 이용해서 카메라를 intrinsic calibration하고자 할 때, 보통은 아주 쉽게 다음의 함수를 이용해서 할 수 있다. import cv2 mtx = None dist = None rvecs = None tvecs = None obj_points = TARGET_3DPOINT img_points = TARGET_2DPOINT RMSE, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(obj_points, img_points, (img_w, img_h), mtx, dist, rvecs, tvecs) 하지만 광각 카메라로 취득한 이미지를 대상으로 intrinsic calibration을 시도할 때, 위 함수를 그대로 사용할 경우, reprojectio..

Knowhow/Vision 2021.11.22
1
더보기
프로필사진

작은 기록 모음

  • 분류 전체보기 (599)
    • About me (12)
      • What I did (12)
      • Memoir (0)
    • Trouble (57)
      • Vision (14)
      • Docker (12)
      • Python, Pytorch (12)
      • C, C++,CMake (3)
      • Linux (9)
      • Others (7)
    • Knowledge (50)
      • Linear algebra (31)
      • Differential Geometry (2)
      • Vision (17)
    • Knowhow (112)
      • Vision (49)
      • C, C++, CMake (11)
      • Linux (11)
      • Docker (7)
      • Python, Pytorch (5)
      • Others (29)
    • Paper (287)
      • Generation (47)
      • 3D vision (110)
      • Human (100)
      • Others (30)
    • Book (81)
      • Investment (22)
      • Motivation (14)
      • Mind (19)
      • Fun (26)

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바