create_am_filter

Function create_am_filter 

Source
pub fn create_am_filter(
    sigma_s: f64,
    sigma_r: f64,
    adjust_outliers: bool,
) -> Result<Ptr<AdaptiveManifoldFilter>>
Expand description

Factory method, create instance of AdaptiveManifoldFilter and produce some initialization routines.

§Parameters

  • sigma_s: spatial standard deviation.

  • sigma_r: color space standard deviation, it is similar to the sigma in the color space into bilateralFilter.

  • adjust_outliers: optional, specify perform outliers adjust operation or not, (Eq. 9) in the original paper.

For more details about Adaptive Manifold Filter parameters, see the original article Gastal12 .

Note: Joint images with CV_8U and CV_16U depth converted to images with CV_32F depth and [0; 1] color range before processing. Hence color space sigma sigma_r must be in [0; 1] range, unlike same sigmas in bilateralFilter and dtFilter functions.

§C++ default parameters

  • adjust_outliers: false