[][src]Function opencv::imgproc::sqr_box_filter

pub fn sqr_box_filter(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    ddepth: i32,
    ksize: Size,
    anchor: Point,
    normalize: bool,
    border_type: i32
) -> Result<()>

Calculates the normalized sum of squares of the pixel values overlapping the filter.

For every pixel inline formula in the source image, the function calculates the sum of squares of those neighboring pixel values which overlap the filter placed over the pixel inline formula.

The unnormalized square box filter can be useful in computing local image statistics such as the the local variance and standard deviation around the neighborhood of a pixel.

Parameters

  • src: input image
  • dst: output image of the same size and type as _src
  • ddepth: the output image depth (-1 to use src.depth())
  • ksize: kernel size
  • anchor: kernel anchor point. The default value of Point(-1, -1) denotes that the anchor is at the kernel center.
  • normalize: flag, specifying whether the kernel is to be normalized by it's area or not.
  • borderType: border mode used to extrapolate pixels outside of the image, see #BorderTypes. #BORDER_WRAP is not supported.

See also

boxFilter

C++ default parameters

  • anchor: Point(-1,-1)
  • normalize: true
  • border_type: BORDER_DEFAULT