[][src]Function opencv::ximgproc::create_dt_filter

pub fn create_dt_filter(
    guide: &dyn ToInputArray,
    sigma_spatial: f64,
    sigma_color: f64,
    mode: i32,
    num_iters: i32
) -> Result<Ptr<dyn DTFilter>>

Factory method, create instance of DTFilter and produce initialization routines.

Parameters

  • guide: guided image (used to build transformed distance, which describes edge structure of guided image).

  • sigmaSpatial: inline formula parameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter.

  • sigmaColor: inline formula parameter in the original article, it's similar to the sigma in the color space into bilateralFilter.

  • mode: one form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article.

  • numIters: optional number of iterations used for filtering, 3 is quite enough.

For more details about Domain Transform filter parameters, see the original article Gastal11 and Domain Transform filter homepage.

C++ default parameters

  • mode: DTF_NC
  • num_iters: 3