ImageFiltersConfig
ImageFiltersConfig 定义了由 ImageFilters 节点执行的滤镜链。它允许你启用或禁用空间滤波、时间滤波、散斑滤波、双边滤波和置信度滤波,调整它们的参数,并加载为飞行时间或立体视差输入量身定制的预设配置。通过 ImageFilters.initialConfig 发布初始配置,或通过 ImageFilters.inputConfig 推送运行时更新。这使得应用程序可以即时切换预设(例如,当场景变得嘈杂时,切换激进的散斑抑制),而无需重新构建管道。参考
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)inline function
DatatypeEnum getDatatype()function
ImageFiltersConfig & updateFilterAtIndex(std::int32_t index, const 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(const 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)需要帮助?
请前往 OAKChina 官网 获取技术支持或解答您的任何疑问。