Skip to content

Commit 42c0314

Browse files
committed
Add setters getters to VppConfig
1 parent 92269d3 commit 42c0314

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

include/depthai/pipeline/datatype/VppConfig.hpp

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,103 @@ class VppConfig : public Buffer {
2121
float confidenceThreshold = 0.5;
2222
int morphologyIterations = 5;
2323
bool useMorphology = true;
24+
// Getters and setters with docstrings
25+
/**
26+
* @brief Check if injection is enabled
27+
* False: all passible pixels will be used.
28+
* @return True if injection is used
29+
*/
30+
bool getUseInjection() const {
31+
return useInjection;
32+
}
33+
34+
/**
35+
* @brief Enable or disable injection
36+
* @param value True to use injection, false to disable
37+
*/
38+
void setUseInjection(bool value) {
39+
useInjection = value;
40+
}
41+
42+
/**
43+
* @brief Get kernel size for injection
44+
* @return Kernel size
45+
*/
46+
int getKernelSize() const {
47+
return kernelSize;
48+
}
49+
50+
/**
51+
* @brief Set kernel size for injection
52+
* @param value Kernel size to set
53+
*/
54+
void setKernelSize(int value) {
55+
kernelSize = value;
56+
}
57+
58+
/**
59+
* @brief Get texture threshold
60+
* @return Texture threshold value
61+
*/
62+
float getTextureThreshold() const {
63+
return textureThreshold;
64+
}
65+
66+
/**
67+
* @brief Set texture threshold
68+
* @param value Texture threshold to set
69+
*/
70+
void setTextureThreshold(float value) {
71+
textureThreshold = value;
72+
}
73+
74+
/**
75+
* @brief Get confidence threshold
76+
* @return Confidence threshold value
77+
*/
78+
float getConfidenceThreshold() const {
79+
return confidenceThreshold;
80+
}
81+
82+
/**
83+
* @brief Set confidence threshold
84+
* @param value Confidence threshold to set
85+
*/
86+
void setConfidenceThreshold(float value) {
87+
confidenceThreshold = value;
88+
}
89+
90+
/**
91+
* @brief Get number of morphology iterations
92+
* @return Number of iterations
93+
*/
94+
int getMorphologyIterations() const {
95+
return morphologyIterations;
96+
}
97+
98+
/**
99+
* @brief Set number of morphology iterations
100+
* @param value Number of iterations
101+
*/
102+
void setMorphologyIterations(int value) {
103+
morphologyIterations = value;
104+
}
105+
106+
/**
107+
* @brief Check if morphology is used
108+
* @return True if morphology is applied
109+
*/
110+
bool isUseMorphology() const {
111+
return useMorphology;
112+
}
113+
114+
/**
115+
* @brief Enable or disable morphology
116+
* @param value True to use morphology, false to disable
117+
*/
118+
void setUseMorphology(bool value) {
119+
useMorphology = value;
120+
}
24121

25122
// clang-format off
26123
DEPTHAI_SERIALIZE(

0 commit comments

Comments
 (0)