[][src]Function opencv::ximgproc::create_fast_bilateral_solver_filter

pub fn create_fast_bilateral_solver_filter(
    guide: &dyn ToInputArray,
    sigma_spatial: f64,
    sigma_luma: f64,
    sigma_chroma: f64,
    lambda: f64,
    num_iter: i32,
    max_tol: f64
) -> Result<Ptr<dyn FastBilateralSolverFilter>>

Factory method, create instance of FastBilateralSolverFilter and execute the initialization routines.

Parameters

  • guide: image serving as guide for filtering. It should have 8-bit depth and either 1 or 3 channels.

  • sigma_spatial: parameter, that is similar to spatial space sigma (bandwidth) in bilateralFilter.

  • sigma_luma: parameter, that is similar to luma space sigma (bandwidth) in bilateralFilter.

  • sigma_chroma: parameter, that is similar to chroma space sigma (bandwidth) in bilateralFilter.

  • lambda: smoothness strength parameter for solver.

  • num_iter: number of iterations used for solver, 25 is usually enough.

  • max_tol: convergence tolerance used for solver.

For more details about the Fast Bilateral Solver parameters, see the original paper BarronPoole2016.

C++ default parameters

  • lambda: 128.0
  • num_iter: 25
  • max_tol: 1e-5