Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calibrate camera? #11

Closed
AlexandrGraschenkov opened this issue Oct 16, 2017 · 3 comments
Closed

How to calibrate camera? #11

AlexandrGraschenkov opened this issue Oct 16, 2017 · 3 comments

Comments

@AlexandrGraschenkov
Copy link

AlexandrGraschenkov commented Oct 16, 2017

I use example from OpenCV for camera calibration. After calibrate matrix check it on learned images. All looks fine. Also get 5 values for distortion, but not use anywhere.

After this try to adapt to yours format and check on playDataset example.

double fx = cameraMatrix.at<double>(0, 0) / (double)imageSize.width;
double fy = cameraMatrix.at<double>(1, 1) / (double)imageSize.height;
double cx = (cameraMatrix.at<double>(0, 2) + 0.5) / (double)imageSize.width;
double cy = (cameraMatrix.at<double>(1, 2) + 0.5) / (double)imageSize.height;

Camera matrix looks like:

0.820361393435219	0.461474391295798	0.495088499159556	0.529959721497076	0
1280 720
crop
1280 720

After undistortion nothing changed. If I set omega to some value, undistortion apply but with strong skew of image. So how you calculate values for camera.txt file?

@AlexandrGraschenkov
Copy link
Author

Seams guys use calibration from PTAM algorithm. After several days of resurrection of PTAM we run the calibration. But it works really bad on TUM dataset. We don't reach any success with this direction. Now we use OpenCV calibration, with RadTan model.

@LittleMing233
Copy link

Hello, I try to undistort my camera with FOV model(seems the vignette calibrate code only support this model), could you tell me how to get calibration with FOV model?

@NikolausDemmel
Copy link

Please don't double post... #8 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants