Navigation
API > API/Plugins > API/Plugins/LensDistortion
Mathematic camera model for lens distortion/undistortion.
Camera matrix = | F.X 0 C.x | | 0 F.Y C.Y | | 0 0 1 |
| Name | FLensDistortionCameraModel |
| Type | struct |
| Header File | /Engine/Plugins/Compositing/LensDistortion/Source/LensDistortion/Classes/LensDistortionAPI.h |
| Include Path | #include "LensDistortionAPI.h" |
Syntax
USTRUCT (BlueprintType )
struct FLensDistortionCameraModel
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLensDistortionCameraModel() |
LensDistortionAPI.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| C | FVector2D | Camera matrix's Cx and Cy. | LensDistortionAPI.h |
|
| F | FVector2D | Camera matrix's Fx and Fy. | LensDistortionAPI.h |
|
| K1 | float | Radial parameter #1. | LensDistortionAPI.h |
|
| K2 | float | Radial parameter #2. | LensDistortionAPI.h |
|
| K3 | float | Radial parameter #3. | LensDistortionAPI.h |
|
| P1 | float | Tangential parameter #1. | LensDistortionAPI.h |
|
| P2 | float | Tangential parameter #2. | LensDistortionAPI.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DrawUVDisplacementToRenderTarget
(
UWorld* World, |
Draws UV displacement map within the output render target. | LensDistortionAPI.h | |
float GetUndistortOverscanFactor
(
float DistortedHorizontalFOV, |
Returns the overscan factor required for the undistort rendering to avoid unrendered distorted pixels. | LensDistortionAPI.h | |
FVector2D UndistortNormalizedViewPosition
(
FVector2D V |
Undistorts 3d vector (x, y, z=1.f) in the view space and returns (x', y', z'=1.f). | LensDistortionAPI.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FLensDistortionCameraModel& Other |
Compare two lens distortion models and return whether they are different. | LensDistortionAPI.h | |
bool operator==
(
const FLensDistortionCameraModel& Other |
Compare two lens distortion models and return whether they are equal. | LensDistortionAPI.h |