ImageFiltersConfig
ImageFiltersConfig defines the filter chain executed by the ImageFilters 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
class
dai::ImageFiltersConfig
variable
std::vector< std::int32_t > filterIndices
Index of the filter to be applied
variable
std::vector< FilterParams > filterParams
Parameters of the filter to be applied
function
~ImageFiltersConfig()function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)function
ImageFiltersConfig & updateFilterAtIndex(std::int32_t index, FilterParams params)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
function
ImageFiltersConfig & insertFilter(FilterParams params)Insert filter parameters describing how a new filter should be inserted
Parameters
- params: Parameters of the filter to be inserted
function
void setProfilePreset(ImageFiltersPresetMode presetMode)function
DEPTHAI_SERIALIZE(ImageFiltersConfig, filterIndices, filterParams)Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.