CARLA
 
载入中...
搜索中...
未找到
SemanticSegmentationCamera.cpp
浏览该文件的文档.
1// 语义分割相机
2// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
3// de Barcelona (UAB).
4//
5// This work is licensed under the terms of the MIT license.
6// For a copy, see <https://opensource.org/licenses/MIT>.
7
8#include "Carla.h"
10
12
14
19
21 const FObjectInitializer &ObjectInitializer)
22 : Super(ObjectInitializer)
23{
24 // 语义分割Camera传感器用了两个后处理材质:物理畸变模型、GroundTruth标注
26 TEXT("Material'/Carla/PostProcessingMaterials/PhysicLensDistortion.PhysicLensDistortion'"));
28 TEXT("Material'/Carla/PostProcessingMaterials/GTMaterial.GTMaterial'"));
29}
30
31void ASemanticSegmentationCamera::PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds)
32{
33 TRACE_CPUPROFILER_EVENT_SCOPE(ASemanticSegmentationCamera::PostPhysTick);
34 FPixelReader::SendPixelsInRenderThread<ASemanticSegmentationCamera, FColor>(*this);
35}
void PostPhysTick(UWorld *World, ELevelTick TickType, float DeltaSeconds) override
static FActorDefinition GetSensorDefinition()
ASemanticSegmentationCamera(const FObjectInitializer &ObjectInitializer)
bool AddPostProcessingMaterial(const FString &Path)
Load the UMaterialInstanceDynamic at the given Path and append it to the list of shaders with Weight.
static FActorDefinition MakeCameraDefinition(const FString &Id, bool bEnableModifyingPostProcessEffects=false)
A definition of a Carla Actor with all the variation and attributes.