Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/VirtualProduction/CameraCalibrationCore/Source/CameraCalibrationCore/Public/LensDistortionModelHandlerBase.h |
Include |
#include "LensDistortionModelHandlerBase.h" |
UCLASS(Abstract)
class ULensDistortionModelHandlerBase : public UObject
Asset user data that can be used on Camera Actors to manage lens distortion state and utilities
Name | Description | ||
---|---|---|---|
|
CurrentState |
Current state as set by the most recent call to Update() |
|
|
DisplayName |
Display name, used to identify handler in-editor details panels |
|
|
DistortionDisplacementMapMID |
MID used to draw the distortion displacement map |
|
|
DistortionDisplacementMapRT |
UV displacement map used to distort an undistorted image |
|
|
DistortionPostProcessMID |
Dynamically created post-process material instance for the currently specified lens model |
|
|
DistortionProducerID |
UObject that is producing the distortion state for this handler |
|
|
TSubclassOf< UL... |
LensModelClass |
Create the distortion MIDs Set the material parameters for the displacement map and distortion post-process materials Convert the generic distortion parameter array into the specific structure of parameters used by the supported lens model Lens Model describing how to interpret the distortion parameters |
|
float |
OverscanFactor |
Computed overscan factor needed to scale the camera's FOV (read-only) |
|
UndistortionDisplacementMapMID |
MID used to draw the undistortion displacement map |
|
|
UndistortionDisplacementMapRT |
UV displacement map used to undistort a distorted image |
Name | Description | |
---|---|---|
|
ULensDistortionModelHandlerBase() |
Name | Description | ||
---|---|---|---|
|
float |
ComputeOverscanFactor() |
Use the current distortion state to compute the overscan factor needed such that all distorted UVs will fall into the valid range of [0,1] |
|
CreateDisplacementMaps ( |
Create two displacement maps, for distortion and undistortion, using the input resolution |
|
|
DrawDistortionDisplacementMap ( |
Draw the distortion displacement map associated with the current state to the DestinationTexture |
|
|
DrawUndistortionDisplacementMap ( |
Draw the undistortion displacement map associated with the current state to the DestinationTexture |
|
|
FLensDistort... |
GetCurrentDistortionState() |
Get the current distortion state (the lens model and properties that mathematically represent the distortion characteristics |
|
GetDisplayName() |
Get the display name of this lens distortion model handler |
|
|
GetDistortedUVs ( |
Computes the distorted version of UndistortedUVs based on the current state |
|
|
UTextureRend... |
GetDistortionDisplacementMap() |
Get the UV displacement map used to distort an undistorted image |
|
UMaterialIns... |
GetDistortionMID() |
Get the post-process MID for the currently specified lens model |
|
GetDistortionProducerID() |
Get the UObject that produces the distortion state for this handler |
|
|
GetFxFy() |
Get the normalized focal length (unitless) |
|
|
const TSubcl... |
GetLensModelClass() |
Get the specified lens model that characterizes the distortion effect |
|
float |
GetOverscanFactor() |
Returns the last overscan factor that was set |
|
GetPrincipalPoint() |
Get the normalized center of projection of the image, in the range [0.0f, 1.0f] |
|
|
UTextureRend... |
GetUndistortionDisplacementMap() |
Get the UV displacement map used to undistort a distorted image |
|
IsModelSupported ( |
Returns true if the input model is supported by this model handler, false otherwise. |
|
|
ProcessCurrentDistortion() |
Draws the current distortion state to the internal displacement map |
|
|
SetDisplayName ( |
Set the display name of this lens distortion model handler |
|
|
SetDistortionProducerID ( |
Set the UObject that produces the distortion state for this handler |
|
|
SetDistortionState ( |
Update the lens distortion state, recompute the overscan factor, and set all material parameters |
|
|
SetOverscanFactor ( |
Updates overscan factor and applies to material instances |
Name | Description | ||
---|---|---|---|
|
PostEditChangeChainProperty ( |
This alternate version of PostEditChange is called when properties inside structs are modified. |
|
|
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |