Created
September 10, 2015 05:17
-
-
Save garaemon/7eb215d3224af632ad70 to your computer and use it in GitHub Desktop.
multisense camera parameter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| header: | |
| seq: 10128 | |
| stamp: | |
| secs: 1441862200 | |
| nsecs: 807214000 | |
| frame_id: /left_camera_optical_frame | |
| height: 544 | |
| width: 1024 | |
| distortion_model: plumb_bob | |
| D: [-0.20831339061260223, 0.11341656744480133, -0.00035378438769839704, -1.746419547998812e-05, 0.013720948249101639, 0.0, 0.0, 0.0] | |
| K: [598.6097412109375, 0.0, 515.5960693359375, 0.0, 600.0813598632812, 255.42999267578125, 0.0, 0.0, 1.0] | |
| R: [0.999993085861206, 0.0022128731943666935, -0.0029819998890161514, -0.0022144035901874304, 0.9999974370002747, -0.0005100672133266926, 0.002980863442644477, 0.0005166670307517052, 0.9999954104423523] | |
| P: [575.3445434570312, 0.0, 519.5, 0.0, 0.0, 575.3445434570312, 259.5, 0.0, 0.0, 0.0, 1.0, 0.0] | |
| binning_x: 0 | |
| binning_y: 0 | |
| roi: | |
| x_offset: 0 | |
| y_offset: 0 | |
| height: 0 | |
| width: 0 | |
| do_rectify: False |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Intrinsic camera matrix for the raw (distorted) images.
Projects 3D points in the camera coordinate frame to 2D pixel
coordinates using the focal lengths (fx, fy) and principal point
(cx, cy).
By convention, this matrix specifies the intrinsic (camera) matrix
of the processed (rectified) image. That is, the left 3x3 portion
is the normal camera intrinsic matrix for the rectified image.
It projects 3D points in the camera coordinate frame to 2D pixel
coordinates using the focal lengths (fx', fy') and principal point
(cx', cy') - these may differ from the values in K.
For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will
also have R = the identity and P[1:3,1:3] = K.
For a stereo pair, the fourth column [Tx Ty 0]' is related to the
position of the optical center of the second camera in the first
camera's frame. We assume Tz = 0 so both cameras are in the same
stereo image plane. The first camera always has Tx = Ty = 0. For
the right (second) camera of a horizontal stereo pair, Ty = 0 and
Tx = -fx' * B, where B is the baseline between the cameras.
Given a 3D point [X Y Z]', the projection (x, y) of the point onto
the rectified image is given by:
[u v w]' = P * [X Y Z 1]'
x = u / w
y = v / w
This holds for both images of a stereo pair.