Agrarsense
SemanticSegmentationCamera.cpp
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
7
8ASemanticSegmentationCamera::ASemanticSegmentationCamera(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
9{
10 PrimaryActorTick.bCanEverTick = false;
11}
12
13void ASemanticSegmentationCamera::Init(FCameraBaseParameters parameters, bool SimulateSensor)
14{
15 // Defined in Camera.h
16 CameraName = "SemanticSegmentationCamera ";
17 FilePrefix = "Data/SemanticSegmentationCamera_";
18
19 AddPostProcessingMaterial("/Game/Agrarsense/Materials/PostProcessingMaterials/GTMaterial.GTMaterial");
20 Super::Init(parameters, SimulateSensor);
21
22 // This camera doesn't need to render shadows
23 SetShadowRendering(false);
24}
void AddPostProcessingMaterial(const FString &Path, float Weight=1.0f)
Definition: Camera.cpp:55
FString FilePrefix
Definition: Camera.h:264
void SetShadowRendering(bool RenderShadows)
Definition: Camera.cpp:730
FString CameraName
Definition: Camera.h:262
void Init(FCameraBaseParameters parameters, bool SimulateSensor=true) override
ASemanticSegmentationCamera(const FObjectInitializer &ObjectInitializer)