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