Camera coordinate & Distortion

Woo Yeong CHO·2021년 11월 20일
0

MVG

목록 보기
6/8

Here we're gonna learn how the point in the world coordinate is mapped to the point in the camera coordinate.

Global steps

1) World coordinate to camera coordinate by extrinsic parameters (rotation & translation)

Pw=[Xw,Yw,Zw]TP_{w} = [X_{w}, Y_{w}, Z_{w}]^{T}

P~c=RPw+t,  P~c=[Xc,Yc,Zc]T\tilde{P}_{c} = RP_{w} + t, \ \ \tilde{P}_{c} = [X_{c}, Y_{c}, Z_{c}]^{T}

where tilde means inhomogenous coordinates.

2) Mapping the camera coordinate to the image plane Pc=[XcZc,YcZc,1]TP_{c} = [\frac{X_{c}}{Z_{c}}, \frac{Y_{c}}{Z_{c}}, 1]^{T}

3) Complement for lens distortions

3) Obtain accurate point using intrinsic parameters

Puv=KPcP_{uv} = KP_{c}


  • Distortion

Three kinds of camera distortion (Barrel, Pincusion, Mustache) has been widely considered.

Genearlly, since people already implemented the mathematical model of camera distortion in OpenCV, we could just use them!

cv::initUndistortRectifyMap(K, k, cv::Matx33f::eye(), K, frameSize, CV_32FC1,mapX, mapY);

profile
I wanna be a specialist! My previous webpage link https://chowy333.tistory.com/

0개의 댓글