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

about CameraRGBDImages() #66

Closed
ss780217 opened this issue Mar 28, 2016 · 3 comments
Closed

about CameraRGBDImages() #66

ss780217 opened this issue Mar 28, 2016 · 3 comments

Comments

@ss780217
Copy link
Contributor

Hi,

Thanks for the wonderful project.
I want to use the CameraRGBDImages() by the images and depth maps captured by ASUS Xtion Pro Live.
But it said that Rectified image required! Calibrate your camera! and no odometry is provided.
How can I do?
Thank you.

@matlabbe
Copy link
Member

A calibration file should be given to CameraRGBDImages object on initialization.

Example of a minimal calibration file (assuming that images are rectified and depth is already registered to RGB) arbitrarly called xtion.yaml (note that values are based on Kinect, you may have to change fx and fy) in the same directory as the executable:

%YAML:1.0
camera_name: xtion
image_width: 640
image_height: 480
camera_matrix:
   rows: 3
   cols: 3
   data: [ 525, 0., 319.5, 0., 525,
       239.5, 0., 0., 1. ]
CameraRGBDImages camera;
camera.init(".", "xtion");

@ss780217
Copy link
Contributor Author

Hi,

Thanks for your answer.
The .yaml file in your answer consist of a few mistakes in the data term and it should be
data: [ 525, 0., 319.5, 0., 525, 239.5, 0., 0., 1. ]
I had tried the this file and it works on xtion!
Thanks.

@matlabbe
Copy link
Member

Yes thx, I just corrected the answer. Doing a calibration of the RGB image could give you more precise fx anf fy values. The mapping still work with any focal distances (non-null), but the scale would not be the same as the environment.

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

2 participants