unreal.OpenCVLensDistortionParameters
¶
- class unreal.OpenCVLensDistortionParameters(k1: float = 0.0, k2: float = 0.0, p1: float = 0.0, p2: float = 0.0, k3: float = 0.0, k4: float = 0.0, k5: float = 0.0, k6: float = 0.0, f: Vector2D = Ellipsis, c: Vector2D = Ellipsis, use_fisheye_model: bool = False)¶
Bases:
OpenCVLensDistortionParametersBase
Mathematic camera model for lens distortion/undistortion. Camera matrix =
F.X 0 C.x |0 F.Y C.Y |0 0 1 |where F and C are normalized.
C++ Source:
Plugin: OpenCVLensDistortion
Module: OpenCVLensDistortion
File: OpenCVLensDistortionParameters.h
Editor Properties: (see get_editor_property/set_editor_property)
c
(Vector2D): [Read-Write] Camera matrix’s normalized Cx and Cy.f
(Vector2D): [Read-Write] Camera matrix’s normalized Fx and Fy.k1
(float): [Read-Write] Radial parameter #1.k2
(float): [Read-Write] Radial parameter #2.k3
(float): [Read-Write] Radial parameter #3.k4
(float): [Read-Write] Radial parameter #4.k5
(float): [Read-Write] Radial parameter #5.k6
(float): [Read-Write] Radial parameter #6.p1
(float): [Read-Write] Tangential parameter #1.p2
(float): [Read-Write] Tangential parameter #2.use_fisheye_model
(bool): [Read-Write] Camera lens needs Fisheye camera model.