[−][src]Function opencv::ximgproc::fast_global_smoother_filter
pub fn fast_global_smoother_filter(
guide: &dyn ToInputArray,
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
lambda: f64,
sigma_color: f64,
lambda_attenuation: f64,
num_iter: i32
) -> Result<()>
Simple one-line Fast Global Smoother filter call. If you have multiple images to filter with the same guide then use FastGlobalSmootherFilter interface to avoid extra computations.
Parameters
-
guide: image serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels.
-
src: source image for filtering with unsigned 8-bit or signed 16-bit or floating-point 32-bit depth and up to 4 channels.
-
dst: destination image.
-
lambda: parameter defining the amount of regularization
-
sigma_color: parameter, that is similar to color space sigma in bilateralFilter.
-
lambda_attenuation: 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.
-
num_iter: number of iterations used for filtering, 3 is usually enough.
C++ default parameters
- lambda_attenuation: 0.25
- num_iter: 3