ToFConfig

This message is used to configure the ToF node.

Examples of functionality

Reference

class depthai.ToFConfig
get(self: depthai.ToFConfig)depthai.RawToFConfig
getData(self: object) → numpy.ndarray[numpy.uint8]
getRaw(self: depthai.ADatatype)depthai.RawBuffer
getSequenceNum(self: depthai.Buffer)int
getTimestamp(self: depthai.Buffer)datetime.timedelta
getTimestampDevice(self: depthai.Buffer)datetime.timedelta
set(self: depthai.ToFConfig, config: depthai.RawToFConfig)depthai.ToFConfig
setData(*args, **kwargs)

Overloaded function.

  1. setData(self: depthai.Buffer, arg0: list[int]) -> None

  2. setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None

setMedianFilter(self: depthai.ToFConfig, arg0: depthai.MedianFilter)depthai.ToFConfig
setSequenceNum(self: depthai.Buffer, arg0: int)depthai.Buffer
setTimestamp(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer
setTimestampDevice(self: depthai.Buffer, arg0: datetime.timedelta)depthai.Buffer
class dai::ToFConfig : public dai::Buffer

ToFConfig message. Carries config for feature tracking algorithm

Public Functions

ToFConfig()

Construct ToFConfig message.

ToFConfig(std::shared_ptr<RawToFConfig> ptr)
~ToFConfig() = default
ToFConfig &setMedianFilter(MedianFilter median)

Parameters
  • median: Set kernel size for median filtering, or disable

ToFConfig &set(dai::RawToFConfig config)

Set explicit configuration.

Parameters
  • config: Explicit configuration

dai::RawToFConfig get() const

Retrieve configuration data for ToF.

Return

config for feature tracking algorithm

Private Functions

std::shared_ptr<RawBuffer> serialize() const override

Private Members

RawToFConfig &cfg

Got questions?

Head over to Discussion Forum for technical support or any other questions you might have.