Class EdgeDetectorConfig

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class EdgeDetectorConfig : public dai::Buffer

EdgeDetectorConfig message. Carries sobel edge filter config.

Public Functions

EdgeDetectorConfig() = default
virtual ~EdgeDetectorConfig()
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

EdgeDetectorConfigData getConfigData() const

Retrieve configuration data for EdgeDetector

Returns:

EdgeDetectorConfigData: sobel filter horizontal and vertical 3x3 kernels

virtual void serialize(std::vector<std::uint8_t> &metadata, DatatypeEnum &datatype) const override
DEPTHAI_SERIALIZE(EdgeDetectorConfig, Buffer::sequenceNum, Buffer::ts, Buffer::tsDevice, config)

Public Members

EdgeDetectorConfigData config
struct EdgeDetectorConfigData

Public Members

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

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