|
CARLA
|
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) |
|
strong |
| Enumerator | |
|---|---|
| Green | |
| Red | |
| Blue | |
Definition at line 128 of file CameraModelUtil.h.
| float CameraModelUtil::ComputeAngle | ( | ECameraModel | CameraModel, |
| float | Distance, | ||
| TArrayView< const float > | Coefficients | ||
| ) |
Definition at line 489 of file CameraModelUtil.cpp.
References CameraModelUtil::KannalaBrandt::ComputeCameraPolynomial(), CameraModelUtil::KannalaBrandt::ComputeCameraPolynomialDerivative(), Equidistant, Equisolid, KannalaBrandt, KannalaBrandtSolverIterations, Orthographic, Perspective, and Stereographic.
Referenced by ASceneCaptureSensor_WideAngleLens::FindFaceIndex().
| float CameraModelUtil::ComputeDistance | ( | ECameraModel | CameraModel, |
| float | Angle, | ||
| int32 | ImageHeight, | ||
| TArrayView< const float > | Coefficients | ||
| ) |
Definition at line 523 of file CameraModelUtil.cpp.
References CameraModelUtil::KannalaBrandt::ComputeCameraPolynomial(), Equidistant, Equisolid, KannalaBrandt, Orthographic, Perspective, and Stereographic.
Referenced by DistortCubemapToImage(), and ASceneCaptureSensor_WideAngleLens::SetFOVAngle().
| FVector2f CameraModelUtil::ComputeLensImagePoint | ( | const FLensModelDescriptor & | Descriptor, |
| FVector | Direction, | ||
| ELensColorChannel | Channel | ||
| ) |
Definition at line 1046 of file CameraModelUtil.cpp.
References BrownConrady, FLensModelDescriptor::CenterX, FLensModelDescriptor::CenterY, FLensModelDescriptor::Coeffs, CameraModelUtil::BrownConrady::Distort(), FLensModelDescriptor::FocalX, FLensModelDescriptor::FocalY, FLensModelDescriptor::LUT, FLensModelDescriptor::Model, RadialForward(), SelectCAScale(), and FLensModelDescriptor::ThetaMax.
| FVector CameraModelUtil::ComputeLensRayDirection | ( | const FLensModelDescriptor & | Descriptor, |
| FVector2f | ImagePoint, | ||
| ELensColorChannel | Channel | ||
| ) |
Definition at line 1085 of file CameraModelUtil.cpp.
References BrownConrady, FLensModelDescriptor::CenterX, FLensModelDescriptor::CenterY, FLensModelDescriptor::Coeffs, FLensModelDescriptor::FocalX, FLensModelDescriptor::FocalY, FLensModelDescriptor::LUT, FLensModelDescriptor::Model, RadialInverse(), SelectCAScale(), FLensModelDescriptor::ThetaMax, and CameraModelUtil::BrownConrady::Undistort().
| void CameraModelUtil::DistortCubemapToImage | ( | FRDGBuilder & | GraphBuilder, |
| FRDGTexture * | Destination, | ||
| FRDGTexture ** | CubeTextures, | ||
| FRHISamplerState * | Sampler, | ||
| const FDistortCubemapToImageOptions & | Options | ||
| ) |
Definition at line 561 of file CameraModelUtil.cpp.
References ApplyDistortionKannalaBrandt(), ApplyDistortionLUT1D(), CameraModelUtil::FDistortCubemapToImageOptions::bExplicitIntrinsics, CameraModelUtil::FDistortCubemapToImageOptions::bRenderEquirectangular, CameraModelUtil::FDistortCubemapToImageOptions::bRenderPerspective, BrownConrady, CameraModelUtil::FDistortCubemapToImageOptions::CameraModel, ComputeDistance(), Equidistant, Equisolid, CameraModelUtil::FDistortCubemapToImageOptions::Intrinsics, KannalaBrandt, CameraModelUtil::FDistortCubemapToImageOptions::KannalaBrandtCoefficients, LUT1D, Orthographic, Perspective, Stereographic, ToPerspective(), CameraModelUtil::FDistortCubemapToImageOptions::YFocalLength, and CameraModelUtil::FDistortCubemapToImageOptions::YFOVAngle.
Referenced by ASceneCaptureSensor_WideAngleLens::CaptureSceneExtended(), and DistortCubemapToImage().
| void CameraModelUtil::DistortCubemapToImage | ( | FRDGBuilder & | GraphBuilder, |
| UTextureRenderTarget2D * | Destination, | ||
| UTextureRenderTarget2D ** | CubeRenderTargets, | ||
| FRHISamplerState * | Sampler, | ||
| const FDistortCubemapToImageOptions & | Options | ||
| ) |
Definition at line 730 of file CameraModelUtil.cpp.
References DistortCubemapToImage().
| FRHISamplerState * CameraModelUtil::GetSampler | ( | ESamplerFilter | Filter | ) |
Definition at line 780 of file CameraModelUtil.cpp.
Referenced by ADepthCamera_WideAngleLens::ADepthCamera_WideAngleLens(), AInstanceSegmentationCamera_WideAngleLens::AInstanceSegmentationCamera_WideAngleLens(), ASceneCaptureCamera_WideAngleLens::ASceneCaptureCamera_WideAngleLens(), and ASemanticSegmentationCamera_WideAngleLens::ASemanticSegmentationCamera_WideAngleLens().
| FVector CameraModelUtil::LensDirToUE | ( | FVector | LensDir | ) |
Definition at line 1112 of file CameraModelUtil.cpp.
|
static |
Definition at line 961 of file CameraModelUtil.cpp.
References CameraModelUtil::KannalaBrandt::ComputeCameraPolynomial(), Equidistant, Equisolid, FTheta, KannalaBrandt, LUT1D, Orthographic, Perspective, CameraModelUtil::LUT1D::SampleForward(), CameraModelUtil::FTheta::SolveRadius(), and Stereographic.
Referenced by ComputeLensImagePoint().
|
static |
Definition at line 993 of file CameraModelUtil.cpp.
References CameraModelUtil::KannalaBrandt::ComputeCameraPolynomial(), CameraModelUtil::KannalaBrandt::ComputeCameraPolynomialDerivative(), Equidistant, Equisolid, FTheta, KannalaBrandt, KannalaBrandtSolverIterations, LUT1D, Orthographic, Perspective, CameraModelUtil::FTheta::Polynomial(), CameraModelUtil::LUT1D::SampleInverse(), and Stereographic.
Referenced by ComputeLensRayDirection().
|
static |
Definition at line 1033 of file CameraModelUtil.cpp.
References Blue, FLensModelDescriptor::CAScaleB, FLensModelDescriptor::CAScaleR, and Red.
Referenced by ComputeLensImagePoint(), and ComputeLensRayDirection().
| FVector CameraModelUtil::UEDirToLens | ( | FVector | UEDir | ) |
Definition at line 1118 of file CameraModelUtil.cpp.