Stay organized with collections
Save and categorize content based on your preferences.
public class
CameraIntrinsics
Provides information about the physical characteristics of the device camera, for the camera
image (CPU) or texture (GPU). The CameraIntrinsics is a long-lived object, and the
properties of CameraIntrinsics may be updated every time Session.update() is called.
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.
Details
Returns
a float[2] containing the focal length. The order of values is {fx, fy}.
public
void
getFocalLength
(float[] focalLength, int offset)
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.
Details
Parameters
focalLength
storage for at least 2 floats representing the focal length. The order of
values is {fx, fy}.
offset
the offset in focalLength at which to begin writing the focal length
values.
public
void
getImageDimensions
(int[] dimensions, int offset)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],[],null,[]]