# ImageFiltersConfig

`ImageFiltersConfig` defines the filter chain executed by the
[`ImageFilters`](https://docs.luxonis.com/software-v3/depthai/depthai-components/nodes/image_filters.md) node. It lets you enable
or disable spatial, temporal, speckle, bilateral, and confidence filters, tune their parameters, and load preset configurations
that are tailored for Time-of-Flight or stereo disparity inputs.

Publish an initial configuration via `ImageFilters.initialConfig` or push runtime updates through `ImageFilters.inputConfig`. This
allows an application to switch presets on the fly (for example, toggling aggressive speckle suppression when the scene becomes
noisy) without rebuilding the pipeline.

## Reference

### 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, 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(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

### Need assistance?

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