Agrarsense
ThermalCameraParameters.h
Go to the documentation of this file.
1// Copyright (c) 2024 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
6#pragma once
7
9
10#include "ThermalCameraParameters.generated.h"
11
12/*
13* Thermal camera parameters.
14* Note. If you add new fields, you need to modify SimulatorJsonParser::ParseThermalCameraParameters function
15* parsing as some of the fields are parsed manually.
16*/
17USTRUCT(Blueprintable)
18struct AGRARSENSE_API FThermalCameraParameters
19{
20 GENERATED_BODY()
21
22 UPROPERTY(EditAnywhere, BlueprintReadWrite)
23 FVector4 WarmColor = FVector4(1.0, 0.0, 0.0, 1.0);
24
25 UPROPERTY(EditAnywhere, BlueprintReadWrite)
26 FVector4 WarmColor2 = FVector4(1.0, 0.55, 0.0, 1.0);
27
28 UPROPERTY(EditAnywhere, BlueprintReadWrite)
29 FVector4 ColdColor = FVector4(0.0, 0.07, 0.36, 1.0);
30
31 UPROPERTY(EditAnywhere, BlueprintReadWrite)
32 FVector4 ColdColor2 = FVector4(0.0, 0.11, 1.0, 1.0);
33
34 /*
35 * Allow custom width and height noise for Thermal camera.
36 */
37 UPROPERTY(EditAnywhere, BlueprintReadWrite)
38 bool AllowCustomNoiseResolution = false;
39
40 /*
41 * Width noise value. Lower value means more pixelated output.
42 * AllowCustomNoiseResolution needs to be set true to control this. Otherwise FCameraBaseParameters Width is used.
43 */
44 UPROPERTY(EditAnywhere, BlueprintReadWrite)
45 int32 WidthResolutionNoise = 1280;
46
47 /*
48 * Height noise value. Lower value means more pixelated output.
49 * AllowCustomNoiseResolution needs to be set true to control this. Otherwise FCameraBaseParameters Height is used.
50 */
51 UPROPERTY(EditAnywhere, BlueprintReadWrite)
52 int32 HeightResolutionNoise = 720;
53
54 /*
55 * Camera parameters
56 */
57 UPROPERTY(EditAnywhere, BlueprintReadWrite)
58 FCameraBaseParameters CameraParameters;
59
60};