Navigation
API > API/Plugins > API/Plugins/OpenCVHelper
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.
| Name | FOpenCVLensDistortionParametersBase |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/OpenCV/Source/OpenCVHelper/Public/OpenCVHelper.h |
| Include Path | #include "OpenCVHelper.h" |
Syntax
USTRUCT (BlueprintType )
struct FOpenCVLensDistortionParametersBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOpenCVLensDistortionParametersBase() |
OpenCVHelper.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUseFisheyeModel | bool | Camera lens needs Fisheye camera model. | OpenCVHelper.h |
|
| C | FVector2D | Camera matrix's normalized Cx and Cy. | OpenCVHelper.h |
|
| F | FVector2D | Camera matrix's normalized Fx and Fy. | OpenCVHelper.h |
|
| K1 | float | Radial parameter #1. | OpenCVHelper.h |
|
| K2 | float | Radial parameter #2. | OpenCVHelper.h |
|
| K3 | float | Radial parameter #3. | OpenCVHelper.h |
|
| K4 | float | Radial parameter #4. | OpenCVHelper.h |
|
| K5 | float | Radial parameter #5. | OpenCVHelper.h |
|
| K6 | float | Radial parameter #6. | OpenCVHelper.h |
|
| P1 | float | Tangential parameter #1. | OpenCVHelper.h |
|
| P2 | float | Tangential parameter #2. | OpenCVHelper.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsIdentity() |
Returns true if lens distortion parameters are for identity lens (or default parameters) | OpenCVHelper.h | |
bool IsSet() |
OpenCVHelper.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FOpenCVLensDistortionParametersBase& Other |
Compare two lens distortion models and return whether they are different. | OpenCVHelper.h | |
bool operator==
(
const FOpenCVLensDistortionParametersBase& Other |
Compare two lens distortion models and return whether they are equal. | OpenCVHelper.h |