此页面由 AI 自动翻译。查看英文原版
最后更新

本页目录

  • 配置选项
  • 后处理
  • 算法控制
  • 参考
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

NeuralDepthConfig

最后更新
此消息用于配置 NeuralDepth 节点。 通过此消息,您可以设置后处理选项,例如置信度阈值、边缘阈值、时间滤波和使用的深度单位。

配置选项

后处理

  • confidenceThreshold:视差计算的置信度阈值。置信度高于此值的像素被认为是有效的。有效范围是 [0, 255],默认值为 125。
  • edgeThreshold:视差计算的边缘阈值。边缘幅度低于此值的像素被认为是无效的。有效范围是 [0, 255],默认值为 10。
  • temporalFilter:具有可选持久性的时间滤波,以减少随时间变化的噪声。

算法控制

  • depthUnit:深度数据的测量单位(例如,MILLIMETER、CENTIMETER、METER)。
  • customDepthUnitMultiplier:相对于 1 米的自定义深度单位乘数。乘数为 1000 意味着深度单位为毫米。

参考

class

dai::NeuralDepthConfig

#include NeuralDepthConfig.hpp
variable
AlgorithmControl algorithmControl
Controls the flow of stereo algorithm - left-right check, subpixel etc.
variable
PostProcessing postProcessing
Controls the postprocessing of disparity and/or depth map.
function
NeuralDepthConfig()
Construct NeuralDepthConfig message.
function
~NeuralDepthConfig()
function
NeuralDepthConfig & setConfidenceThreshold(uint8_t confThr)
Confidence threshold for disparity calculation
Parameters
  • confThr: Confidence threshold value 0..255
function
uint8_t getConfidenceThreshold()
Get confidence threshold for disparity calculation
function
NeuralDepthConfig & setEdgeThreshold(uint8_t edgeThr)
Set edge threshold for disparity calculation
Parameters
  • edgeThr: Edge threshold value 0..255
function
uint8_t getEdgeThreshold()
Get edge threshold for disparity calculation
function
NeuralDepthConfig & setDepthUnit(AlgorithmControl::DepthUnit depthUnit)
Set depth unit of depth map.
function
AlgorithmControl::DepthUnit getDepthUnit()
Get depth unit of depth map.
function
NeuralDepthConfig & setCustomDepthUnitMultiplier(float multiplier)
Set custom depth unit multiplier relative to 1 meter.
function
float getCustomDepthUnitMultiplier()
Get custom depth unit multiplier relative to 1 meter.
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)
function
struct

dai::NeuralDepthConfig::AlgorithmControl

using
DepthUnit = dai::DepthUnit
variable
DepthUnit depthUnit
Measurement unit for depth data. Depth data is integer value, multiple of depth unit.
variable
float customDepthUnitMultiplier
Custom depth unit multiplier, if custom depth unit is enabled, relative to 1 meter. A multiplier of 1000 effectively means depth unit in millimeter.
function
struct

dai::NeuralDepthConfig::PostProcessing

using
using
variable
uint8_t confidenceThreshold
Confidence threshold for disparity calculation, Confidences above this value will be considered valid. Valid range is [0,255].
variable
uint8_t edgeThreshold
Edge threshold for disparity calculation, Pixels with edge magnitude below this value will be considered invalid. Valid range is [0,255].
variable
ThresholdFilter thresholdFilter
Threshold filtering. Filters out distances outside of a given interval.
variable
TemporalFilter temporalFilter
Temporal filtering with optional persistence.
function

需要帮助?

请访问讨论论坛以获取技术支持或您可能有的任何其他问题。