Agrarsense
DVSCameraParameters.h
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
6#pragma once
7
9
10#include "DVSCameraParameters.generated.h"
11
12USTRUCT(Blueprintable)
13struct AGRARSENSE_API FDVSCameraParameters
14{
15 GENERATED_BODY()
16
17 /*
18 * Positive threshold C associated to a increment in brightness change (0-1).
19 */
20 UPROPERTY(EditAnywhere, BlueprintReadWrite)
21 float PositiveThreshold = 0.3;
22
23 /*
24 * Negative threshold C associated to a decrement in brightness change (0-1).
25 */
26 UPROPERTY(EditAnywhere, BlueprintReadWrite)
27 float NegativeThreshold = 0.3;
28
29 /*
30 * White noise standard deviation for positive events (0-1).
31 */
32 UPROPERTY(EditAnywhere, BlueprintReadWrite)
33 float SigmaPositiveThreshold = 0.0;
34
35 /*
36 * White noise standard deviation for negative events (0-1).
37 */
38 UPROPERTY(EditAnywhere, BlueprintReadWrite)
39 float SigmaNegativeThreshold = 0.0;
40
41 /*
42 * Refractory period (time during which a pixel cannot fire events just after it fired one), in nanoseconds. It limits the highest frequency of triggering events.
43 */
44 UPROPERTY(EditAnywhere, BlueprintReadWrite)
45 int RefractoryPeriodNs = 0;
46
47 /*
48 * Whether to work in the logarithmic intensity scale.
49 */
50 UPROPERTY(EditAnywhere, BlueprintReadWrite)
51 bool UseLog = true;
52
53 /*
54 * Epsilon value used to convert images to log
55 */
56 UPROPERTY(EditAnywhere, BlueprintReadWrite)
57 float LogEps = 0.001;
58
62 UPROPERTY(EditAnywhere, BlueprintReadWrite)
63 bool SortByIncreasingTimestamp = true;
64
65 /*
66 * Should use ParallelFor for the DVS camera image grayscale conversion
67 */
68 UPROPERTY(EditAnywhere, BlueprintReadWrite)
69 bool ParalellImageConversion = true;
70
71 /*
72 * Should use ParallelFor for the DVS camera simulation
73 */
74 UPROPERTY(EditAnywhere, BlueprintReadWrite)
75 bool ParallelSimulation = true;
76
77 /*
78 * Should we visualize DVS camera output in separate window
79 */
80 UPROPERTY(EditAnywhere, BlueprintReadWrite)
81 bool VisualizeDVSCamera = true;
82
83 /*
84 * Camera parameters
85 */
86 UPROPERTY(EditAnywhere, BlueprintReadWrite)
87 FCameraBaseParameters CameraParameters;
88};