CameraCalibration Class

Description

CameraCalibration is the class for camera calibration data.

Constructor

C: void easyar_CameraCalibration__ctor(easyar_CameraCalibration * * Return)
C++11: CameraCalibration()
Traditional C++: CameraCalibration()
Java: public CameraCalibration()
Objective-C: + (easyar_CameraCalibration *) create
Swift (since EasyAR SDK 2.1.0): public convenience init()

size

Returns the size of calibration data.

C: easyar_Vec2I easyar_CameraCalibration_size(const easyar_CameraCalibration * This)
C++11: Vec2I size()
Traditional C++: Vec2I size()
Java: public native Vec2I size()
Objective-C: - (easyar_Vec2I *)size
Swift (since EasyAR SDK 2.1.0): public func size() -> Vec2I

focalLength

Returns the focal length of calibration data.

C: easyar_Vec2F easyar_CameraCalibration_focalLength(const easyar_CameraCalibration * This)
C++11: Vec2F focalLength()
Traditional C++: Vec2F focalLength()
Java: public native Vec2F focalLength()
Objective-C: - (easyar_Vec2F *)focalLength
Swift (since EasyAR SDK 2.1.0): public func focalLength() -> Vec2F

principalPoint

Returns the principal point of calibration data.

C: easyar_Vec2F easyar_CameraCalibration_principalPoint(const easyar_CameraCalibration * This)
C++11: Vec2F principalPoint()
Traditional C++: Vec2F principalPoint()
Java: public native Vec2F principalPoint()
Objective-C: - (easyar_Vec2F *)principalPoint
Swift (since EasyAR SDK 2.1.0): public func principalPoint() -> Vec2F

distortionParameters

Returns the distortion parameters of calibration data.

C: easyar_Vec4F easyar_CameraCalibration_distortionParameters(const easyar_CameraCalibration * This)
C++11: Vec4F distortionParameters()
Traditional C++: Vec4F distortionParameters()
Java: public native Vec4F distortionParameters()
Objective-C: - (easyar_Vec4F *)distortionParameters
Swift (since EasyAR SDK 2.1.0): public func distortionParameters() -> Vec4F

rotation

Returns the angle camera image rotated when display.

C: int easyar_CameraCalibration_rotation(const easyar_CameraCalibration * This)
C++11: int rotation()
Traditional C++: int rotation()
Java: public native int rotation()
Objective-C: - (int)rotation
Swift (since EasyAR SDK 2.1.0): public func rotation() -> Int32

projectionGL

Returns projection matrix.

C: easyar_Matrix44F easyar_CameraCalibration_projectionGL(easyar_CameraCalibration * This, float nearPlane, float farPlane)
C++11: Matrix44F projectionGL(float nearPlane, float farPlane)
Traditional C++: Matrix44F projectionGL(float nearPlane, float farPlane)
Java: public native Matrix44F projectionGL(float nearPlane, float farPlane)
Objective-C: - (easyar_Matrix44F *)projectionGL:(float)nearPlane farPlane:(float)farPlane
Swift (since EasyAR SDK 2.1.0): public func projectionGL(_ nearPlane: Float, _ farPlane: Float) -> Matrix44F