CameraCalibration Class

Description

CameraCalibration存储了camera的标定数据。

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

返回标定数据中的大小。

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

返回标定数据中的焦距。

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

返回标定数据中的主点。

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

返回标定数据中的畸变参数。

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

返回显示时camera图像旋转的角度。

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

返回投影矩阵。

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