From 18162c622ab4ac8e51a21b9a5ae9b40aff5b478e Mon Sep 17 00:00:00 2001
From: Eino-Ville Talvala
Relative angle of camera optical axis to the -perpendicular axis from the display
+The orientation of the camera relative to the sensor
+coordinate system.
[0-90) for first angle,
Examples:
-(0,
(45,
(45,
Use FACING field to determine perpendicular outgoing -direction
+The four coefficients that describe the quarternion
+rotation from the Android sensor coordinate system to a
+camera-aligned coordinate system where the X-axis is
+aligned with the long side of the image sensor,
To convert from the quarternion coefficients (x,
+to the axis of rotation (a_
and rotation
+amount theta
,
theta = 2 * acos(w)
+a_ x = x / sin(theta/ 2)
+a_ y = y / sin(theta/ 2)
+a_ z = z / sin(theta/ 2)
+
+To create a 3x3 rotation matrix that applies the rotation
+defined by this quarternion,
R = [ 1 - 2y^2 - 2z^2, 2xy - 2zw, 2xz + 2yw,
+ 2xy + 2zw, 1 - 2x^2 - 2z^2, 2yz - 2xw,
+ 2xz - 2yw, 2yz + 2xw, 1 - 2x^2 - 2y^2 ]
+
+This matrix can then be used to apply the rotation to a + column vector point with
+p' = Rp
where p
is in the device sensor coordinate system,p'
is in the camera-oriented coordinate system.
Coordinates of camera optical axis on -device
+Position of the camera optical center.
As measured in the device sensor coordinate system,(x,
.
To transform a world position to a camera-device centered
+coordinate system,
The parameters for this camera device's intrinsic
+calibration.
The five calibration parameters that describe the +transform from camera-centric 3D coordinates to sensor +pixel coordinates:
+[f_ x, f_ y, c_ x, c_ y, s]
+
+Where f_
and f_
are the horizontal and vertical
+focal lengths,[c_
is the position of the optical
+axis,s
is a skew parameter for the sensor plane not
+being aligned with the lens plane.
These are typically used within a transformation matrix K:
+K = [ f_ x, s, c_ x,
+ 0, f_ y, c_ y,
+ 0 0, 1 ]
+
+which can then be combined with the camera pose rotation
+R
and translation t
(android.
P = [ K 0 * [ R t
+ 0 1 ] 0 1 ]
+
+and with p_
being a point in the world coordinate system
+and p_
being a point in the camera active pixel array
+coordinate system,
p_ h = (x_ h, y_ h, z_ h) = P p_ w
+p_ s = p_ h / z_ h
+
+so [x_
is the pixel coordinates of the world
+point,z_
,w_
is a measurement of disparity
+(depth) in pixel coordinates.
The correction coefficients to correct for this camera device's
+radial lens distortion.
Three cofficients [kappa_
that
+can be used to correct the lens's radial geometric
+distortion with the mapping equations:
x_ c = x_ i * ( 1 + kappa_ 1 * r^2 + kappa_ 2 * r^4 + kappa_ 3 * r^6 )
+y_ c = y_ i * ( 1 + kappa_ 1 * r^2 + kappa_ 2 * r^4 + kappa_ 3 * r^6 )
+
+where [x_
are normalized coordinates with (0,
+at the lens optical center,[-1,
are the edges of
+the active pixel array; and where [x_
are the
+corrected normalized coordinates with radial distortion
+removed; and r^2 = x_
.
The orientation of the camera relative to the sensor
+coordinate system.
The four coefficients that describe the quarternion
+rotation from the Android sensor coordinate system to a
+camera-aligned coordinate system where the X-axis is
+aligned with the long side of the image sensor,
To convert from the quarternion coefficients (x,
+to the axis of rotation (a_
and rotation
+amount theta
,
theta = 2 * acos(w)
+a_ x = x / sin(theta/ 2)
+a_ y = y / sin(theta/ 2)
+a_ z = z / sin(theta/ 2)
+
+To create a 3x3 rotation matrix that applies the rotation
+defined by this quarternion,
R = [ 1 - 2y^2 - 2z^2, 2xy - 2zw, 2xz + 2yw,
+ 2xy + 2zw, 1 - 2x^2 - 2z^2, 2yz - 2xw,
+ 2xz - 2yw, 2yz + 2xw, 1 - 2x^2 - 2y^2 ]
+
+This matrix can then be used to apply the rotation to a + column vector point with
+p' = Rp
where p
is in the device sensor coordinate system,p'
is in the camera-oriented coordinate system.
Position of the camera optical center.
As measured in the device sensor coordinate system,(x,
.
To transform a world position to a camera-device centered
+coordinate system,
The parameters for this camera device's intrinsic
+calibration.
The five calibration parameters that describe the +transform from camera-centric 3D coordinates to sensor +pixel coordinates:
+[f_ x, f_ y, c_ x, c_ y, s]
+
+Where f_
and f_
are the horizontal and vertical
+focal lengths,[c_
is the position of the optical
+axis,s
is a skew parameter for the sensor plane not
+being aligned with the lens plane.
These are typically used within a transformation matrix K:
+K = [ f_ x, s, c_ x,
+ 0, f_ y, c_ y,
+ 0 0, 1 ]
+
+which can then be combined with the camera pose rotation
+R
and translation t
(android.
P = [ K 0 * [ R t
+ 0 1 ] 0 1 ]
+
+and with p_
being a point in the world coordinate system
+and p_
being a point in the camera active pixel array
+coordinate system,
p_ h = (x_ h, y_ h, z_ h) = P p_ w
+p_ s = p_ h / z_ h
+
+so [x_
is the pixel coordinates of the world
+point,z_
,w_
is a measurement of disparity
+(depth) in pixel coordinates.
The correction coefficients to correct for this camera device's
+radial lens distortion.
Three cofficients [kappa_
that
+can be used to correct the lens's radial geometric
+distortion with the mapping equations:
x_ c = x_ i * ( 1 + kappa_ 1 * r^2 + kappa_ 2 * r^4 + kappa_ 3 * r^6 )
+y_ c = y_ i * ( 1 + kappa_ 1 * r^2 + kappa_ 2 * r^4 + kappa_ 3 * r^6 )
+
+where [x_
are normalized coordinates with (0,
+at the lens optical center,[-1,
are the edges of
+the active pixel array; and where [x_
are the
+corrected normalized coordinates with radial distortion
+removed; and r^2 = x_
.