CameraIntrinsics
Camera intrinsics. This is a copy of the ARCore CameraIntrinsics class.
Declaration
open class CameraIntrinsicsFunctions
| Name | Type | Summary |
|---|---|---|
| getFocalLength | FloatArray | |
| getImageDimensions | IntArray | Returns a int[2] containing the image dimensions. The order of values is {width,height}. |
| getPrincipalPoint | FloatArray | Returns a float[2] containing the principal point. The order of values is {cx, cy}. |
| toFloatArray | Array<FloatArray> | Returns a float[3][3] representing the camera's intrinsic matrix. |
Relationships
derived: CameraIntrinsicsFromARCore
The focal length is conventionally represented in pixels. For a detailed explanation, please
see
Disecting the Camera Matrix, Part 3: The Intrinsic Matrix.
Pixels-to-meters conversion can use
SENSOR_INFO_PHYSICAL_SIZEandSENSOR_INFO_PIXEL_ARRAY_SIZEin the Android Characteristics API.