CARLA
Loading...
Searching...
No Matches
Namespaces | Classes | Enumerations | Functions
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()

float CameraModelUtil::ComputeAngle ( ECameraModel  CameraModel,
float  Distance,
TArrayView< const float >  Coefficients 
)

◆ ComputeDistance()

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

◆ ComputeLensImagePoint()

FVector2f CameraModelUtil::ComputeLensImagePoint ( const FLensModelDescriptor &  Descriptor,
FVector  Direction,
ELensColorChannel  Channel 
)

◆ ComputeLensRayDirection()

FVector CameraModelUtil::ComputeLensRayDirection ( const FLensModelDescriptor &  Descriptor,
FVector2f  ImagePoint,
ELensColorChannel  Channel 
)

◆ DistortCubemapToImage() [1/2]

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

◆ 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()

FRHISamplerState * CameraModelUtil::GetSampler ( ESamplerFilter  Filter)

◆ LensDirToUE()

FVector CameraModelUtil::LensDirToUE ( FVector  LensDir)

Definition at line 1112 of file CameraModelUtil.cpp.

◆ RadialForward()

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

◆ RadialInverse()

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

◆ SelectCAScale()

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

◆ UEDirToLens()

FVector CameraModelUtil::UEDirToLens ( FVector  UEDir)

Definition at line 1118 of file CameraModelUtil.cpp.