Skip to main content
API Reference com.nianticspatial.nsdk CameraIntrinsics

getFocalLength

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.

Declaration

open fun getFocalLength(): FloatArray

Summary

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.

Returns

a float[2] containing the focal length. The order of values is {fx, fy}.


ON THIS PAGE