ToFConfig¶
This message is used to configure the ToF node.
Reference¶
-
class
depthai.
ToFConfig
ToFConfig message. Carries config for feature tracking algorithm
-
class
DepthParams
DepthParams configuration structure.
-
class
TypeFMod
Frequency modulation frames used for depth calculation. If the ToF sensor supports multiple modulation frequencies, all will be used for depth calculation.
Members:
ALL
MIN
MAX
-
property
name
-
property
-
property
avgPhaseShuffle
Enable averaging between phases with same modulation frequency(e.g. for ToF cameras with phase shuffle). The depth frame rate will be half if this is enabled
-
property
median
Set kernel size for depth median filtering, or disable
-
property
minimumAmplitude
Perform depth calculation only for pixels with amplitude greater than provided value
-
class
-
get
(self: depthai.ToFConfig) → depthai.RawToFConfig Retrieve configuration data for ToF.
- Returns
config for feature tracking algorithm
-
getData
(self: object) → numpy.ndarray[numpy.uint8] Get non-owning reference to internal buffer
- Returns
Reference to internal buffer
-
getRaw
(self: depthai.ADatatype) → depthai.RawBuffer
-
getSequenceNum
(self: depthai.Buffer) → int Retrieves sequence number
-
getTimestamp
(self: depthai.Buffer) → datetime.timedelta Retrieves timestamp related to dai::Clock::now()
-
getTimestampDevice
(self: depthai.Buffer) → datetime.timedelta Retrieves timestamp directly captured from device’s monotonic clock, not synchronized to host time. Used mostly for debugging
-
set
(self: depthai.ToFConfig, config: depthai.RawToFConfig) → depthai.ToFConfig Set explicit configuration.
- Parameter
config
: Explicit configuration
- Parameter
-
setAvgPhaseShuffle
(self: depthai.ToFConfig, arg0: bool) → depthai.ToFConfig
-
setData
(*args, **kwargs) Overloaded function.
setData(self: depthai.Buffer, arg0: List[int]) -> None
- Parameter
data
: Copies data to internal buffer
setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None
- Parameter
data
: Copies data to internal buffer
-
setDepthParams
(self: depthai.ToFConfig, config: depthai.RawToFConfig.DepthParams) → depthai.ToFConfig
-
setFreqModUsed
(self: depthai.ToFConfig, arg0: depthai.RawToFConfig.DepthParams.TypeFMod) → depthai.ToFConfig
-
setMedianFilter
(self: depthai.ToFConfig, arg0: depthai.MedianFilter) → depthai.ToFConfig - Parameter
median
: Set kernel size for median filtering, or disable
- Parameter
-
setMinAmplitude
(self: depthai.ToFConfig, arg0: float) → depthai.ToFConfig
-
setSequenceNum
(self: depthai.Buffer, arg0: int) → depthai.Buffer Retrieves sequence number
-
setTimestamp
(self: depthai.Buffer, arg0: datetime.timedelta) → depthai.Buffer Sets timestamp related to dai::Clock::now()
-
setTimestampDevice
(self: depthai.Buffer, arg0: datetime.timedelta) → depthai.Buffer Sets timestamp related to dai::Clock::now()
-
class
-
class
dai
::
ToFConfig
: public dai::Buffer¶ ToFConfig message. Carries config for feature tracking algorithm
Public Types
-
using
DepthParams
= RawToFConfig::DepthParams¶
Public Functions
-
~ToFConfig
() = default¶
-
ToFConfig &
setDepthParams
(dai::ToFConfig::DepthParams config)¶
-
ToFConfig &
setFreqModUsed
(dai::ToFConfig::DepthParams::TypeFMod fmod)¶
-
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 Members
-
RawToFConfig &
cfg
¶
-
using