|
| template<typename FShaderType > |
| static void | ApplyDistortion (FRDGBuilder &GraphBuilder, FRDGTextureRef Destination, FRDGTextureRef CubeTextures[6], FRHISamplerState *Sampler, FIntPoint Size, const CameraModelUtil::FDistortCubemapToImageOptions &Options, FVector4f CameraParams) |
| |
| static void | ApplyDistortionKannalaBrandt (FRDGBuilder &GraphBuilder, FRDGTextureRef Destination, FRDGTextureRef CubeTextures[6], FRHISamplerState *Sampler, FIntPoint Size, const CameraModelUtil::FDistortCubemapToImageOptions &Options, FVector4f CameraParams) |
| |
| static void | ApplyDistortionLUT1D (FRDGBuilder &GraphBuilder, FRDGTextureRef Destination, FRDGTextureRef CubeTextures[6], FRHISamplerState *Sampler, FIntPoint Size, const CameraModelUtil::FDistortCubemapToImageOptions &Options, FVector4f CameraParams) |
| |
| float | CameraModelUtil::ComputeAngle (ECameraModel CameraModel, float Distance, TArrayView< const float > Coefficients) |
| |
| float | CameraModelUtil::KannalaBrandt::ComputeCameraPolynomial (float Theta, TArrayView< const float > Coefficients) |
| |
| float | CameraModelUtil::KannalaBrandt::ComputeCameraPolynomialDerivative (float Theta, TArrayView< const float > Coefficients) |
| |
| float | CameraModelUtil::ComputeDistance (ECameraModel CameraModel, float Angle, int32 ImageHeight, TArrayView< const float > Coefficients) |
| |
| FVector2f | CameraModelUtil::ComputeLensImagePoint (const FLensModelDescriptor &Descriptor, FVector Direction, ELensColorChannel Channel) |
| |
| FVector | CameraModelUtil::ComputeLensRayDirection (const FLensModelDescriptor &Descriptor, FVector2f ImagePoint, ELensColorChannel Channel) |
| |
| template<typename FShaderType > |
| static auto | CreateDistortionParameters (FRDGBuilder &GraphBuilder, FRDGTextureRef Destination, FRDGTextureRef CubeTextures[6], FRHISamplerState *Sampler, const CameraModelUtil::FDistortCubemapToImageOptions &Options, FVector4f CameraParams) |
| |
| | DECLARE_PERSPECTIVE_SHADER (FToPerspectiveShader_Custom, ECameraModel::KannalaBrandt) |
| |
| | DECLARE_PERSPECTIVE_SHADER (FToPerspectiveShader_Equidistance, ECameraModel::Equidistant) |
| |
| | DECLARE_PERSPECTIVE_SHADER (FToPerspectiveShader_Equisolid, ECameraModel::Equisolid) |
| |
| | DECLARE_PERSPECTIVE_SHADER (FToPerspectiveShader_Orthogonal, ECameraModel::Orthographic) |
| |
| | DECLARE_PERSPECTIVE_SHADER (FToPerspectiveShader_Perspective, ECameraModel::Perspective) |
| |
| | DECLARE_PERSPECTIVE_SHADER (FToPerspectiveShader_Stereographic, ECameraModel::Stereographic) |
| |
| | DECLARE_WIDE_ANGLE_LENS_SHADER (FWideAngleLensShader_Custom, ECameraModel::KannalaBrandt) |
| |
| | DECLARE_WIDE_ANGLE_LENS_SHADER (FWideAngleLensShader_Equidistance, ECameraModel::Equidistant) |
| |
| | DECLARE_WIDE_ANGLE_LENS_SHADER (FWideAngleLensShader_Equisolid, ECameraModel::Equisolid) |
| |
| | DECLARE_WIDE_ANGLE_LENS_SHADER (FWideAngleLensShader_LUT1D, ECameraModel::LUT1D) |
| |
| | DECLARE_WIDE_ANGLE_LENS_SHADER (FWideAngleLensShader_Orthogonal, ECameraModel::Orthographic) |
| |
| | DECLARE_WIDE_ANGLE_LENS_SHADER (FWideAngleLensShader_Perspective, ECameraModel::Perspective) |
| |
| | DECLARE_WIDE_ANGLE_LENS_SHADER (FWideAngleLensShader_Stereographic, ECameraModel::Stereographic) |
| |
| template<typename FShaderType > |
| static void | DispatchDistortion (FRDGBuilder &GraphBuilder, typename FShaderType::FParameters *Parameters, FIntPoint Size) |
| |
| FVector2f | CameraModelUtil::BrownConrady::Distort (float Xn, float Yn, TArrayView< const float > Coefficients) |
| |
| void | CameraModelUtil::DistortCubemapToImage (FRDGBuilder &GraphBuilder, FRDGTexture *Destination, FRDGTexture **CubeTextures, FRHISamplerState *Sampler, const FDistortCubemapToImageOptions &Options) |
| |
| void | CameraModelUtil::DistortCubemapToImage (FRDGBuilder &GraphBuilder, UTextureRenderTarget2D *Destination, UTextureRenderTarget2D **CubeRenderTargets, FRHISamplerState *Sampler, const FDistortCubemapToImageOptions &Options) |
| |
| static void | CameraModelUtil::BrownConrady::EvalWithJacobian (float Xn, float Yn, TArrayView< const float > C, float &OutXd, float &OutYd, float OutJ[4]) |
| |
| FRHISamplerState * | CameraModelUtil::GetSampler (ESamplerFilter Filter) |
| |
| | IMPLEMENT_SHADER_TYPE (, FToPerspectiveShader_Custom, TEXT("/Plugin/Carla/ToPerspective.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FToPerspectiveShader_Equidistance, TEXT("/Plugin/Carla/ToPerspective.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FToPerspectiveShader_Equisolid, TEXT("/Plugin/Carla/ToPerspective.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FToPerspectiveShader_Orthogonal, TEXT("/Plugin/Carla/ToPerspective.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FToPerspectiveShader_Perspective, TEXT("/Plugin/Carla/ToPerspective.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FToPerspectiveShader_Stereographic, TEXT("/Plugin/Carla/ToPerspective.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FWideAngleLensShader_Custom, TEXT("/Plugin/Carla/WideAngleLens.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FWideAngleLensShader_Equidistance, TEXT("/Plugin/Carla/WideAngleLens.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FWideAngleLensShader_Equisolid, TEXT("/Plugin/Carla/WideAngleLens.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FWideAngleLensShader_LUT1D, TEXT("/Plugin/Carla/WideAngleLens.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FWideAngleLensShader_Orthogonal, TEXT("/Plugin/Carla/WideAngleLens.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FWideAngleLensShader_Perspective, TEXT("/Plugin/Carla/WideAngleLens.usf"), TEXT("MainCS"), SF_Compute) |
| |
| | IMPLEMENT_SHADER_TYPE (, FWideAngleLensShader_Stereographic, TEXT("/Plugin/Carla/WideAngleLens.usf"), TEXT("MainCS"), SF_Compute) |
| |
| FVector | CameraModelUtil::LensDirToUE (FVector LensDir) |
| |
| float | CameraModelUtil::FTheta::Polynomial (float Distance, TArrayView< const float > Coefficients) |
| |
| static float | CameraModelUtil::RadialForward (ECameraModel Model, float Theta, TArrayView< const float > Coeffs, TArrayView< const float > LUT, float ThetaMax) |
| |
| static float | CameraModelUtil::RadialInverse (ECameraModel Model, float Distance, TArrayView< const float > Coeffs, TArrayView< const float > LUT, float ThetaMax) |
| |
| float | CameraModelUtil::LUT1D::SampleForward (float Theta, TArrayView< const float > Samples, float ThetaMax) |
| |
| float | CameraModelUtil::LUT1D::SampleInverse (float Distance, TArrayView< const float > Samples, float ThetaMax) |
| |
| static float | CameraModelUtil::SelectCAScale (const FLensModelDescriptor &Descriptor, ELensColorChannel Channel) |
| |
| float | CameraModelUtil::FTheta::SolveRadius (float Theta, TArrayView< const float > Coefficients, int32 Iterations) |
| |
| template<typename FShaderType > |
| static void | ToPerspective (FRDGBuilder &GraphBuilder, FRDGTextureRef Destination, FRDGTextureRef Source, FRHISamplerState *Sampler, float YFOVAngle, float DestinationFocalDistance, float SourceFocalDistance, FIntPoint Size) |
| |
| static void | ToPerspective (FRDGBuilder &GraphBuilder, FRDGTextureRef Destination, FRDGTextureRef Source, FRHISamplerState *Sampler, float YFOVAngle, float DestinationFocalDistance, float SourceFocalDistance, FIntPoint Size, TArrayView< const float > KannalaBrandtCoefficients) |
| |
| FVector | CameraModelUtil::UEDirToLens (FVector UEDir) |
| |
| FVector2f | CameraModelUtil::BrownConrady::Undistort (float Xd, float Yd, TArrayView< const float > Coefficients, int32 Iterations) |
| |