Two modes are supported in guided filter, basic mode and fast mode. Basic mode is the initial pushed guided filter without optimization. Fast mode is implemented based on the basic one by sub-sampling method. The sub-sampling ratio which can be defined by users controls the algorithm complexity. The larger the sub-sampling ratio, the lower the algorithm complexity.
43d70feb78 GSoC: Support fast guided filter.
doc/filters.texi | 20 +++++++---
libavfilter/vf_guided.c | 104 ++++++++++++++++++++++++++++++++----------------
2 files changed, 85 insertions(+), 39 deletions(-)