# ImageFiltersConfig

ImageFiltersConfig 定义了由 [ImageFilters](https://docs.luxonis.com/software-v3/depthai/depthai-components/nodes/image_filters.md)
节点执行的滤镜链。它允许你启用或禁用空间滤波、时间滤波、散斑滤波、双边滤波和置信度滤波，调整它们的参数，并加载为飞行时间或立体视差输入量身定制的预设配置。

通过 ImageFilters.initialConfig 发布初始配置，或通过 ImageFilters.inputConfig 推送运行时更新。这使得应用程序可以即时切换预设（例如，当场景变得嘈杂时，切换激进的散斑抑制），而无需重新构建管道。

## 参考

### dai::ImageFiltersConfig

Kind: class

#### std::vector< std::int32_t > filterIndices

Kind: variable

Index of the filter to be applied

#### std::vector< FilterParams > filterParams

Kind: variable

Parameters of the filter to be applied

#### ~ImageFiltersConfig()

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

#### ImageFiltersConfig & updateFilterAtIndex(std::int32_t index, const FilterParams & params)

Kind: function

Insert filter parameters describing how a filter at index index should be updated parameters: index: Index of the filter to be
inserted; params: Parameters of the filter to be inserted

#### ImageFiltersConfig & insertFilter(const FilterParams & params)

Kind: function

Insert filter parameters describing how a new filter should be inserted parameters: params: Parameters of the filter to be
inserted

#### void setProfilePreset(ImageFiltersPresetMode presetMode)

Kind: function

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

#### DEPTHAI_SERIALIZE(ImageFiltersConfig, filterIndices, filterParams)

Kind: function

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
