Page Summary
-
CameraIntrinsics provides information about the physical characteristics of the device camera.
-
The properties of CameraIntrinsics may be updated every time Session.update() is called.
-
CameraIntrinsics includes methods to get the camera's focal length, image dimensions, and principal point.
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.
Public Methods
float[]
|
getFocalLength()
Returns the camera's focal length in pixels.
|
void
|
getFocalLength(float[] focalLength, int offset)
Returns the camera's focal length in pixels.
|
void
|
getImageDimensions(int[] dimensions, int offset)
Returns the camera's image dimensions.
|
int[]
|
getImageDimensions()
Returns a
int[2] containing the image dimensions. |
float[]
|
getPrincipalPoint()
Returns a
float[2] containing the principal point. |
void
|
getPrincipalPoint(float[] principalPoint, int offset)
Returns the camera's principal point.
|
Inherited Methods
Public Methods
public float[] getFocalLength ()
getFocalLength
public float[] 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.
| Details | |
|---|---|
| Returns | a float[2] containing the focal length. The order of values is {fx, fy}.
|
public void getFocalLength (float[] focalLength, int offset)
getFocalLength
public void getFocalLength( float[] focalLength, int offset )
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.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
public void getImageDimensions (int[] dimensions, int offset)
getImageDimensions
public void getImageDimensions( int[] dimensions, int offset )
Returns the camera's image dimensions. The order of values is {width, height}.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
public int[] getImageDimensions ()
getImageDimensions
public int[] getImageDimensions()
Returns a int[2] containing the image dimensions. The order of values is {width,
height}.
public float[] getPrincipalPoint ()
getPrincipalPoint
public float[] getPrincipalPoint()
Returns a float[2] containing the principal point. The order of values is {cx, cy}.
public void getPrincipalPoint (float[] principalPoint, int offset)
getPrincipalPoint
public void getPrincipalPoint( float[] principalPoint, int offset )
Returns the camera's principal point. The order of values is {cx, cy}.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||