본문 바로가기

Camera Calibration

Camera calibration With OpenCV http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.htmlCamera calibration With OpenCVCameras have been around for a long-long time. However, with the introduction of the cheap pinhole cameras in the late 20th century, they became a common occurrence in our everyday life. Unfortunately, this cheapness comes with its price: significant distortion. Luckily, these are.. 더보기
Cholesky decomposition을 이용한 카메라 행렬 분해 http://blog.naver.com/PostView.nhn?blogId=chulhoon81&logNo=50070452627 [출처] camera calibration|작성자 chulhoon81 카메라보정(camera calibration) 또는 Self-calibration에서 카메라의 내부(intrinsic)/외부(extrinsic) 파라미터를 계산하는 것이 중요한데 그중에서 cholesky decomposition을 이용하는 방법에 대해 쓰고자 한다. Cholesky decompostion을 이용하여 카메라 행렬을 분해하는 방법은 아래 박사학위 논문에 언급되어있다. T.Melen, "Geometrical modelling and calibration of video cameras for under.. 더보기
From Homography to OpenGL Modelview Matrix http://urbanar.blogspot.kr/2011/04/from-homography-to-opengl-modelview.html This is the challenge of the week-- how do I get from a 3x3 homography matrix (which relates the plane of the source image to the plane found in the scene image) to an OpenGL modelview transformation matrix so I can start, you know, augmenting reality? The tricky thing is that while I can use the homography to project a .. 더보기
Step by Step Camera Pose Estimation for Visual Tracking and Planar Markers http://dsp.stackexchange.com/questions/2736/step-by-step-camera-pose-estimation-for-visual-tracking-and-planar-markers ftp://svr-ftp.eng.cam.ac.uk/pub/reports/mendonca_self-calibration.pdf 11R21R31R12R22R32R13R23R33TxTyTz⎤⎦⎥ 더보기
Homography to camera pose(extrinsic) if you have your Homography, you can calculate the camera pose with something like this:void cameraPoseFromHomography(const Mat& H, Mat& pose) { pose = Mat::eye(3, 4, CV_32FC1); // 3x4 matrix, the camera pose float norm1 = (float)norm(H.col(0)); float norm2 = (float)norm(H.col(1)); float tnorm = (norm1 + norm2) / 2.0f; // Normalization value Mat p1 = H.col(0); // Pointer to first column of H Mat.. 더보기
Camera Tracking - Tukey biweight estimator 문제 제기) Tukey biweight estimator 란것이 patch tracking에 쓰이는데 정확히 모하는건지 궁금하다. (outlier제거? pose ?? 일단 자세한 설명은 너무 어렵고 일반적으로 제대로 설명한 곳이 없다..) 일단 포즈는 보통 카메라 포즈를 말하면 이는 extrinsic parameters 를 의미하는 것으로 파악~^^ 궁금한것인 Matrix연산에의해 어떤 의미가 있는지 어떻게 적용하는지가 궁금?또한 왜 구해야하는지? 이런거 ?Homography와의 관계등이 궁금.Calibration에 대한 기본 개념을 이해하긴 했는데 실제 적용은? 어렵지?? 왜?ㅎ http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3247745/http://www.mdpi.c.. 더보기
solvePnP (1) 여기서, (X,Y,Z)는 월드 좌표계(world coordinate system) 상의 3D 점의 좌표, [R|t]는 월드 좌표계를 카메라 좌표계로 변환시키기 위한 회전/이동변환 행렬이며 A는 camera matrix입니다. 3. 카메라 외부 파라미터(extrinsic parameters) 카메라 외부 파라미터는 카메라 좌표계와 월드 좌표계 사이의 변환 관계를 설명하는 파라미터로서, 두 좌표계 사이의 회전(rotation) 및 평행이동(translation) 변환으로 표현됩니다. 카메라 외부 파라미터는 카메라 고유의 파라미터가 아니기 때문에 카메라를 어떤 위치에 어떤 방향으로 설치했는지에 따라 달라지고 또한 월드 좌표계를 어떻게 정의했느냐에 따라서 달라집니다. 카메라 외부 파라미터를 구하기 위해서.. 더보기
OpenCV API - Geometric Image Transformations Geometric Image TransformationsThe functions in this section perform various geometrical transformations of 2D images. That is, they do not change the image content, but deform the pixel grid, and map this deformed grid to the destination image. In fact, to avoid sampling artifacts, the mapping is done in the reverse order, from destination to the source. That is, for each pixel of the destinati.. 더보기
Perspective Projection http://b.mytears.org/2007/10/599 가장 설명 쉽게 나온거 같다~~ 소스 코드를 자세히 보라~!!HCI 과제 덕에 심심찮게 프로그래밍을 하게 되네요. 첫 과제 였던 3D rotation 관련을 구현하는 것도 상당히 흥미로웠지만, 두번째 과제인 Perspective Projection 를 구현하는 것은 정말 멋진 경험이었다고 생각합니다.지난 며칠간 꽤나 재밌게 프로그래밍을 했던 관계로 블로그에도 살짝 정리해보는게 어떨까 하는 생각이 들었는데, 막상 쓸려니 내용이 잘 전해질지 의문이네요.WHAT IS THE PERSPECTIVE PROJECTION?Perspective Projection 이란 아래의 왼쪽 이미지를 오른쪽 이미지 처럼 변화시키는 것을 얘기합니다. 꼭 저렇게 비뚜러진 이.. 더보기
Detection of planar objects http://docs.opencv.org/doc/tutorials/features2d/detection_of_planar_objects/detection_of_planar_objects.html#detection-of-planar-objects The goal of this tutorial is to learn how to use features2d and calib3d modules for detecting known planar objects in scenes.Test data: use images in your data folder, for instance, box.png and box_in_scene.png.Create a new console project. Read two input image.. 더보기