[][src]Function opencv::cudafilters::create_box_filter

pub fn create_box_filter(
    src_type: i32,
    dst_type: i32,
    ksize: Size,
    anchor: Point,
    border_mode: i32,
    border_val: Scalar
) -> Result<Ptr<dyn Filter>>

Creates a normalized 2D box filter.

Parameters

  • srcType: Input image type. Only CV_8UC1, CV_8UC4 and CV_32FC1 are supported for now.
  • dstType: Output image type. Only the same type as src is supported for now.
  • ksize: Kernel size.
  • anchor: Anchor point. The default value Point(-1, -1) means that the anchor is at the kernel center.
  • borderMode: Pixel extrapolation method. For details, see borderInterpolate .
  • borderVal: Default border value.

See also

boxFilter

C++ default parameters

  • anchor: Point(-1,-1)
  • border_mode: BORDER_DEFAULT
  • border_val: Scalar::all(0)