FOpenCVLensDistortionParameters

Mathematic camera model for lens distortion/undistortion.

Windows
MacOS
Linux

References

Module

OpenCVLensDistortion

Header

/Engine/Plugins/Compositing/OpenCVLensDistortion/Source/OpenCVLensDistortion/Public/OpenCVLensDistortionParameters.h

Include

#include "OpenCVLensDistortionParameters.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)([BlueprintType](Programming/UnrealArchitecture/Reference/Structs/Specifiers/BlueprintType))
struct FOpenCVLensDistortionParameters

Remarks

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.

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

bool

 

bUseFisheyeModel

Camera lens needs Fisheye camera model.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

FVector2D

 

C

Camera matrix's normalized Cx and Cy.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

FVector2D

 

F

Camera matrix's normalized Fx and Fy.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

K1

Radial parameter #1.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

K2

Radial parameter #2.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

K3

Radial parameter #3.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

K4

Radial parameter #4.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

K5

Radial parameter #5.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

K6

Radial parameter #6.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

P1

Tangential parameter #1.

Public variable UProperty Category, EditAnywhere, Interp BlueprintReadWrite

float

 

P2

Tangential parameter #2.

Constructors

Functions

Name Description

Public function Const

UTexture2D &...

 

CreateUndistortUVDisplacementMap

(
    const FIntPoint& InImageSize,
    const float InCroppingFactor,
    FOpenCVCameraViewInfo& OutCameraVi...
)

Creates a texture containing a DisplacementMap in the Red and the Green channel for undistorting a camera image.

Public function Static

void

 

DrawDisplacementMapToRenderTarget

(
    UWorld* InWorld,
    UTextureRenderTarget2D* InOutp...,
    UTexture2D* InPreComputedUndis...
)

Draws UV displacement map within the output render target.

Public function Const

bool

 

IsIdentity()

Returns true if lens distortion parameters are for identity lens (or default parameters)

Public function Const

bool

 

IsSet()

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FOpenCVLensDistortionParamete...
)

Compare two lens distortion models and return whether they are different.

Public function Const

bool

 

operator==

(
    const FOpenCVLensDistortionParamete...
)

Compare two lens distortion models and return whether they are equal.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss