VppConfig
最后更新
参考
class
dai::VppConfig
variable
float blending
variable
float distanceGamma
variable
uint8_t maxPatchSize
variable
PatchColoringType patchColoringType
variable
bool uniformPatch
variable
InjectionParameters injectionParameters
variable
int maxNumThreads
variable
int maxFPS
function
VppConfig()function
~VppConfig()inline function
float getBlending()Get blending factor between 0 and 1.
Returns
Current blending value
inline function
void setBlending(float value)Set blending factor between 0 and 1: resulting pixel: patchColor * blending + (1 - blending) * imgFrame.
Parameters
- value: Blending value to set
inline function
float getDistanceGamma()Get distance gamma.
Returns
Current distance gamma
inline function
void setDistanceGamma(float value)Set distance gamma.
Parameters
- value: Distance gamma to set
inline function
uint8_t getMaxPatchSize()Get maximum patch size.
Returns
Maximum patch size
inline function
void setMaxPatchSize(uint8_t value)Set maximum patch size.
Parameters
- value: Patch size to set
inline function
PatchColoringType getPatchColoringType()Get patch coloring type: UNIFORM/MAXDIST.
Returns
Current patch coloring type
inline function
void setPatchColoringType(PatchColoringType type)Set patch coloring type: UNIFORM/MAXDIST.
Parameters
- type: Patch coloring type to set
inline function
bool getUniformPatch()Check if uniform patching is enabled.
Returns
True if uniform patching is enabled
inline function
void setUniformPatch(bool value)Enable or disable uniform patching.
Parameters
- value: True to enable, false to disable
inline function
InjectionParameters getInjectionParameters()Get injection parameters.
Returns
Current injection parameters
inline function
void setInjectionParameters(const InjectionParameters & params)Set injection parameters.
Parameters
- params: Injection parameters to set
inline function
int getMaxNumThreads()Get maximum number of threads.
Returns
Maximum number of threads
inline function
void setMaxNumThreads(int value)Set maximum number of threads.
Parameters
- value: Number of threads to set
inline function
int getMaxFPS()Get maximum FPS.
Returns
Maximum FPS
inline function
void setMaxFPS(int value)Set maximum FPS.
Parameters
- value: Maximum FPS to set
inline function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)function
DEPTHAI_SERIALIZE(VppConfig, blending, distanceGamma, maxPatchSize, patchColoringType, uniformPatch, injectionParameters, maxNumThreads, maxFPS)struct
dai::VppConfig::InjectionParameters
variable
bool useInjection
variable
int kernelSize
variable
float textureThreshold
variable
float confidenceThreshold
variable
int morphologyIterations
variable
bool useMorphology
inline function
bool getUseInjection()Check if injection is enabled False: all possible pixels will be used.
Returns
True if injection is used
inline function
void setUseInjection(bool value)Enable or disable injection.
Parameters
- value: True to use injection, false to disable
inline function
int getKernelSize()Get kernel size for injection.
Returns
Kernel size
inline function
void setKernelSize(int value)Set kernel size for injection.
Parameters
- value: Kernel size to set
inline function
float getTextureThreshold()Get texture threshold.
Returns
Texture threshold value
inline function
void setTextureThreshold(float value)Set texture threshold.
Parameters
- value: Texture threshold to set
inline function
float getConfidenceThreshold()Get confidence threshold.
Returns
Confidence threshold value
inline function
void setConfidenceThreshold(float value)Set confidence threshold.
Parameters
- value: Confidence threshold to set
inline function
int getMorphologyIterations()Get number of morphology iterations.
Returns
Number of iterations
inline function
void setMorphologyIterations(int value)Set number of morphology iterations.
Parameters
- value: Number of iterations
inline function
bool isUseMorphology()Check if morphology is used.
Returns
True if morphology is applied
inline function
void setUseMorphology(bool value)Enable or disable morphology.
Parameters
- value: True to use morphology, false to disable
function
DEPTHAI_SERIALIZE(InjectionParameters, useInjection, kernelSize, textureThreshold, confidenceThreshold, morphologyIterations, useMorphology)enum
int PatchColoringType
enumerator
RANDOM
enumerator
MAXDIST
需要帮助?
请访问讨论论坛以获取技术支持或您可能有的任何其他问题。