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

本页目录

  • 功能示例
  • 参考
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

EdgeDetectorConfig

最后更新
此消息用于配置 EdgeDetector 节点。 您可以设置水平和垂直Sobel滤波器核。

功能示例

参考

class

dai::EdgeDetectorConfig

#include EdgeDetectorConfig.hpp
variable
function
EdgeDetectorConfig()
function
~EdgeDetectorConfig()
function
void setSobelFilterKernels(const std::vector< std::vector< int >> & horizontalKernel, const std::vector< std::vector< int >> & verticalKernel)
Set sobel filter horizontal and vertical 3x3 kernels
Parameters
  • horizontalKernel: Used for horizontal gradient computation in 3x3 Sobel filter
  • verticalKernel: Used for vertical gradient computation in 3x3 Sobel filter
function
EdgeDetectorConfigData getConfigData()
Retrieve configuration data for EdgeDetector
Returns
EdgeDetectorConfigData: sobel filter horizontal and vertical 3x3 kernels
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)
inline function
DatatypeEnum getDatatype()
Get the datatype of this specific message.
Returns
DatatypeEnum
function
DEPTHAI_SERIALIZE(EdgeDetectorConfig, Buffer::sequenceNum, Buffer::ts, Buffer::tsDevice, Buffer::tsSystem, config)
struct

dai::EdgeDetectorConfig::EdgeDetectorConfigData

variable
std::vector< std::vector< int > > sobelFilterHorizontalKernel
Used for horizontal gradient computation in 3x3 Sobel filter Format - 3x3 matrix, 2nd column must be 0 Default - +1 0 -1; +2 0 -2; +1 0 -1
variable
std::vector< std::vector< int > > sobelFilterVerticalKernel
Used for vertical gradient computation in 3x3 Sobel filter Format - 3x3 matrix, 2nd row must be 0 Default - +1 +2 +1; 0 0 0; -1 -2 -1
function

需要帮助?

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