Navigation
API > API/Plugins > API/Plugins/CameraCalibrationCore
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULensFile
References
| Module | CameraCalibrationCore |
| Header | /Engine/Plugins/VirtualProduction/CameraCalibrationCore/Source/CameraCalibrationCore/Public/LensFile.h |
| Include | #include "LensFile.h" |
Syntax
UCLASS&40;BlueprintType&41;
class ULensFile :
public UObject,
public FTickableGameObject
Remarks
A Lens file containing calibration mapping from FIZ data
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< UAssetImportData > | AssetImportData | Importing data and options used for importing ulens files. | |
| TUniquePtr< ICalibratedMapProcessor > | CalibratedMapProcessor | Processor handling derived data out of calibrated st maps | |
| FCameraFeedInfo | CameraFeedInfo | Camera feed information | |
| ELensDataMode | DataMode | Type of data used for lens mapping | |
| int32 | DerivedDataInFlightCount | Derived data compute jobs we are waiting on | |
| TArray< TObjectPtr< UTextureRenderTarget2D > > | DistortionDisplacementMapHolders | Texture used to store temporary distortion displacement map when using map blending | |
| FDistortionTable | DistortionTable | Distortion parameters table mapping to input focus/zoom | |
| FEncodersTable | EncodersTable | Encoder mapping table | |
| FFocalLengthTable | FocalLengthTable | Focal length table mapping to input focus/zoom | |
| FImageCenterTable | ImageCenterTable | Image center table mapping to input focus/zoom | |
| float | InputTolerance | Tolerance used to consider input focus or zoom to be identical | |
| FLensInfo | LensInfo | Lens information | |
| FNodalOffsetTable | NodalOffsetTable | Nodal offset table mapping to input focus/zoom | |
| FOnLensFileModelChanged | OnLensFileModelChangedDelegate | Delegate that is triggered when the LensModel changes | |
| FSimulcamInfo | SimulcamInfo | Simulcam information | |
| FSTMapTable | STMapTable | STMap table mapping to input focus/zoom | |
| TArray< TObjectPtr< UTextureRenderTarget2D > > | UndistortionDisplacementMapHolders | Texture used to store temporary undistortion displacement map when using map blending | |
| TMap< FString, FString > | UserMetadata | Metadata user could enter for its lens |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ULensFile () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddDistortionPoint
(
float NewFocus, |
Adds a distortion point in our map. If a point already exist at the location, it is updated | |
| void | AddFocalLengthPoint
(
float NewFocus, |
Adds a focal length point in our map. If a point already exist at the location, it is updated | |
| void | AddImageCenterPoint
(
float NewFocus, |
Adds an ImageCenter point in our map. If a point already exist at the location, it is updated | |
| void | AddNodalOffsetPoint
(
float NewFocus, |
Adds an NodalOffset point in our map. If a point already exist at the location, it is updated | |
| void | AddSTMapPoint
(
float NewFocus, |
Adds an STMap point in our map. If a point already exist at the location, it is updated | |
| void | ClearAll () |
Removes all points of all tables | |
| void | ClearData
(
ELensDataCategory InDataCategory |
Removes table associated to data category | |
| float | ComputeOverscan
(
const FDistortionData& DerivedData, |
Returns the overscan factor based on distorted UV and image center | |
| void | CreateIntermediateDisplacementMaps
(
const FIntPoint DisplacementMapResolution |
Create the intermediate displacement maps needed to do map blending to get final distortion/undistortion maps | |
| bool | EvaluateDistortionData
(
float InFocus, |
Draws the distortion map based on evaluation point | |
| bool | EvaluateDistortionForParameters
(
float InFocus, |
Evaluates distortion based on InFocus and InZoom using parameters | |
| bool | EvaluateDistortionForSTMaps
(
float InFocus, |
Evaluates distortion based on InFocus and InZoom using STMaps | |
| bool | EvaluateDistortionParameters
(
float InFocus, |
Returns interpolated distortion parameters | |
| bool | EvaluateFocalLength
(
float InFocus, |
Returns interpolated focal length | |
| bool | EvaluateImageCenterParameters
(
float InFocus, |
Returns interpolated image center parameters based on input focus and zoom | |
| bool | EvaluateNodalPointOffset
(
float InFocus, |
Returns interpolated nodal point offset based on input focus and zoom | |
| float | EvaluateNormalizedFocus
(
float InNormalizedValue |
Returns interpolated focus based on input normalized value and mapping | |
| float | EvaluateNormalizedIris
(
float InNormalizedValue |
Returns interpolated iris based on input normalized value and mapping | |
| const FBaseLensTable * | GetDataTable
(
ELensDataCategory InDataCategory |
Get data table reference based on given category | |
| bool | GetDistortionPoint
(
float InFocus, |
Gets a Distortion point by given focus and zoom, if point does not exists returns false | |
| TArray< FDistortionPointInfo > | Gets all Distortion points struct with focus, zoom and info | ||
| bool | GetFocalLengthPoint
(
float InFocus, |
Gets a Focal Length point by given focus and zoom, if point does not exists returns false | |
| TArray< FFocalLengthPointInfo > | Gets all Focal Length points struct with focus, zoom and info | ||
| bool | GetImageCenterPoint
(
float InFocus, |
Gets a Image Center point by given focus and zoom, if point does not exists returns false | |
| TArray< FImageCenterPointInfo > | Gets all Image Center points struct with focus, zoom and info | ||
| bool | GetNodalOffsetPoint
(
float InFocus, |
Gets a Nodal Offset point by given focus and zoom, if point does not exists returns false | |
| TArray< FNodalOffsetPointInfo > | Gets all Nodal Offset points struct with focus, zoom and info | ||
| bool | GetSTMapPoint
(
float InFocus, |
Gets a ST Map point by given focus and zoom, if point does not exists returns false | |
| TArray< FSTMapPointInfo > | Gets all ST Map points struct with focus, zoom and info | ||
| int32 | GetTotalPointNum
(
ELensDataCategory InDataCategory |
Returns total number of the points for given category | |
| bool | Whether focus encoder mapping is configured | ||
| bool | Whether iris encoder mapping is configured | ||
| bool | HasSamples
(
ELensDataCategory InDataCategory |
Returns whether a category has data samples | |
| void | OnDistortionDerivedDataJobCompleted
(
const FDerivedDistortionDataJobOutput& JobOutput |
Callbacked when stmap derived data has completed | |
| FOnLensFileModelChanged & | Returns the delegate that is triggered when the LensModel changes | ||
| void | RemoveFocusPoint
(
ELensDataCategory InDataCategory, |
Removes a focus point | |
| void | RemoveZoomPoint
(
ELensDataCategory InDataCategory, |
Removes a zoom point | |
| void | SetupNoDistortionOutput
(
ULensDistortionModelHandlerBase* LensHandler |
Clears output displacement map on LensHandler to have no distortion and setup distortion data to match that | |
| void | Updates derived data entries to make sure it matches what is assigned in map points based on data mode | ||
| void | UpdateDisplacementMapResolution
(
const FIntPoint NewDisplacementMapResolution |
Update the resolution used for intermediate blending displacement maps and for STMap derived data | |
| void | UpdateInputTolerance
(
const float NewTolerance |
Update the input tolerance used when adding points to calibration tables |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
This alternate version of PostEditChange is called when properties inside structs are modified. | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
Overridden from FTickableGameObject
| Type | Name | Description | |
|---|---|---|---|
| bool | Used to determine whether the object should be ticked in the editor. |
Overridden from FTickableObjectBase
| Type | Name | Description | |
|---|---|---|---|
| TStatId | GetStatId () |
Return the stat id to use for this tickable | |
| void | Tick
(
float DeltaTime |
Pure virtual that must be overloaded by the inheriting class. |
Constants
| Name | Description |
|---|---|
| DisplacementMapHolderCount | The number of intermediate displacement maps needed to do map blending |
| UndistortedUVs | UV coordinates of 8 points (4 corners + 4 mid points) |