Skip to main content
API Reference com.nianticspatial.nsdk

CameraIntrinsics

Camera intrinsics. This is a copy of the ARCore CameraIntrinsics class.

Declaration

open class CameraIntrinsics

Properties

NameTypeSummary
focalLengthArrayFloatArray
-
imageDimensionsArrayIntArray
-
principalPointArrayFloatArray
-

Functions

NameTypeSummary
getFocalLengthFloatArray
Returns the camera's focal length in pixels. 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_SIZE and SENSOR_INFO_PIXEL_ARRAY_SIZE in the Android Characteristics API.
getImageDimensionsIntArray
Returns a int[2] containing the image dimensions. The order of values is {width, height}.
getPrincipalPointFloatArray
Returns a float[2] containing the principal point. The order of values is {cx, cy}.
toFloatArrayArray<FloatArray>
Returns a float[3][3] representing the camera's intrinsic matrix.

Relationships

derived: CameraIntrinsicsFromARCore