[−][src]Function opencv::ximgproc::fast_bilateral_solver_filter
pub fn fast_bilateral_solver_filter(
guide: &dyn ToInputArray,
src: &dyn ToInputArray,
confidence: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
sigma_spatial: f64,
sigma_luma: f64,
sigma_chroma: f64,
lambda: f64,
num_iter: i32,
max_tol: f64
) -> Result<()>
Simple one-line Fast Bilateral Solver filter call. If you have multiple images to filter with the same guide then use FastBilateralSolverFilter 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.
-
confidence: confidence image with unsigned 8-bit or floating-point 32-bit confidence and 1 channel.
-
dst: destination image.
-
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.
Note: Confidence images with CV_8U depth are expected to in [0, 255] and CV_32F in [0, 1] range.
C++ default parameters
- sigma_spatial: 8
- sigma_luma: 8
- sigma_chroma: 8
- lambda: 128.0
- num_iter: 25
- max_tol: 1e-5