Simple one-line Fast Global Smoother filter call
dst = cv.FastGlobalSmootherFilter.fastGlobalSmootherFilter(src, guide)
dst = cv.FastGlobalSmootherFilter.fastGlobalSmootherFilter(src, guide, 'OptionName',optionValue, ...)
Input
- src source image for filtering with unsigned 8-bit or
signed 16-bit or floating-point 32-bit depth and up to 4
channels.
- guide image serving as guide for filtering. It should have
8-bit depth and either 1 or 3 channels.
Output
Options
- Lambda parameter defining the amount of regularization.
default 100.0
- SigmaColor parameter, that is similar to color space sigma
in cv.bilateralFilter. default 5.0
- LambdaAttenuation internal parameter, defining how much
lambda decreases after each iteration. Normally, it should be
0.25. Setting it to 1.0 may lead to streaking artifacts.
default 0.25
- NumIter number of iterations used for filtering, 3 is
usually enough. default 3
If you have multiple images to filter with the same guide then
use FastGlobalSmootherFilter interface to avoid extra
computations.