# ToFDepthConfidenceFilterConfig

ToFDepthConfidenceFilterConfig configures the confidence-driven post-processing stage used in DepthAI Time-of-Flight pipelines. It
is primarily consumed by the [ToF](https://docs.luxonis.com/software-v3/depthai/depthai-components/nodes/tof.md) node and the
[ImageFilters](https://docs.luxonis.com/software-v3/depthai/depthai-components/nodes/image_filters.md) node when they are
operating on ToF depth frames.

The message exposes thresholds for confidence values, dilation/erosion parameters, and options to inpaint or invalidate pixels
that fall below a desired certainty. By pushing updated ToFDepthConfidenceFilterConfig messages at runtime you can trade off
between spatial smoothness and preserving fine depth detail as environmental conditions change.

## Reference

### dai::ToFDepthConfidenceFilterConfig

Kind: class

#### float confidenceThreshold

Kind: variable

Threshold for the confidence filter

#### ~ToFDepthConfidenceFilterConfig()

Kind: function

#### void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)

Kind: function

#### DatatypeEnum getDatatype()

Kind: function

Get the datatype of this specific message.

return: DatatypeEnum

#### void setProfilePreset(ImageFiltersPresetMode presetMode)

Kind: function

Set preset mode for ImageFiltersPresetMode. parameters: presetMode: Preset mode for ImageFiltersPresetMode.

#### DEPTHAI_SERIALIZE(ToFDepthConfidenceFilterConfig, confidenceThreshold)

Kind: function

### Need assistance?

Head over to [Discussion Forum](https://discuss.luxonis.com/) for technical support or any other questions you might have.
