pub fn create_am_filter_def(
sigma_s: f64,
sigma_r: f64,
) -> 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.
§Note
This alternative version of create_am_filter function uses the following default values for its arguments:
- adjust_outliers: false