CARLA
Loading...
Searching...
No Matches
CameraModelUtil Namespace Reference

Namespaces

namespace  BrownConrady
namespace  FTheta
namespace  KannalaBrandt
namespace  LUT1D

Classes

struct  FDistortCubemapToImageOptions

Enumerations

enum class  ELensColorChannel : uint8 { Green , Red , Blue }

Functions

float ComputeAngle (ECameraModel CameraModel, float Distance, TArrayView< const float > Coefficients)
float ComputeDistance (ECameraModel CameraModel, float Angle, int32 ImageHeight, TArrayView< const float > Coefficients)
FVector2f ComputeLensImagePoint (const FLensModelDescriptor &Descriptor, FVector Direction, ELensColorChannel Channel)
FVector ComputeLensRayDirection (const FLensModelDescriptor &Descriptor, FVector2f ImagePoint, ELensColorChannel Channel)
void DistortCubemapToImage (FRDGBuilder &GraphBuilder, FRDGTexture *Destination, FRDGTexture **CubeTextures, FRHISamplerState *Sampler, const FDistortCubemapToImageOptions &Options)
void DistortCubemapToImage (FRDGBuilder &GraphBuilder, UTextureRenderTarget2D *Destination, UTextureRenderTarget2D **CubeRenderTargets, FRHISamplerState *Sampler, const FDistortCubemapToImageOptions &Options)
FRHISamplerState * GetSampler (ESamplerFilter Filter)
FVector LensDirToUE (FVector LensDir)
static float RadialForward (ECameraModel Model, float Theta, TArrayView< const float > Coeffs, TArrayView< const float > LUT, float ThetaMax)
static float RadialInverse (ECameraModel Model, float Distance, TArrayView< const float > Coeffs, TArrayView< const float > LUT, float ThetaMax)
static float SelectCAScale (const FLensModelDescriptor &Descriptor, ELensColorChannel Channel)
FVector UEDirToLens (FVector UEDir)

Enumeration Type Documentation

◆ ELensColorChannel

enum class CameraModelUtil::ELensColorChannel : uint8
strong
Enumerator
Green 
Red 
Blue 

Definition at line 128 of file CameraModelUtil.h.

Function Documentation

◆ ComputeAngle()

◆ ComputeDistance()

float CameraModelUtil::ComputeDistance ( ECameraModel CameraModel,
float Angle,
int32 ImageHeight,
TArrayView< const float > Coefficients )

◆ ComputeLensImagePoint()

◆ ComputeLensRayDirection()

◆ DistortCubemapToImage() [1/2]

◆ DistortCubemapToImage() [2/2]

void CameraModelUtil::DistortCubemapToImage ( FRDGBuilder & GraphBuilder,
UTextureRenderTarget2D * Destination,
UTextureRenderTarget2D ** CubeRenderTargets,
FRHISamplerState * Sampler,
const FDistortCubemapToImageOptions & Options )

Definition at line 730 of file CameraModelUtil.cpp.

References DistortCubemapToImage().

◆ GetSampler()

◆ LensDirToUE()

FVector CameraModelUtil::LensDirToUE ( FVector LensDir)

Definition at line 1112 of file CameraModelUtil.cpp.

References LensDirToUE().

Referenced by LensDirToUE().

◆ RadialForward()

float CameraModelUtil::RadialForward ( ECameraModel Model,
float Theta,
TArrayView< const float > Coeffs,
TArrayView< const float > LUT,
float ThetaMax )
static

◆ RadialInverse()

◆ SelectCAScale()

float CameraModelUtil::SelectCAScale ( const FLensModelDescriptor & Descriptor,
ELensColorChannel Channel )
static

◆ UEDirToLens()

FVector CameraModelUtil::UEDirToLens ( FVector UEDir)

Definition at line 1118 of file CameraModelUtil.cpp.

References UEDirToLens().

Referenced by UEDirToLens().