cv.boxFilter - MATLAB File Help
cv.boxFilter

Blurs an image using the box filter

dst = cv.boxFilter(src)
dst = cv.boxFilter(src, 'OptionName',optionValue, ...)

Input

Output

Options

The function smooths an image using the kernel:

K = alpha * ones(KSize)

where:

        | 1/prod(KSize)  when Normalize=true
alpha = |
        | 1              otherwise

Unnormalized box filter is useful for computing various integral characteristics over each pixel neighborhood, such as covariance matrices of image derivatives (used in dense optical flow algorithms, and so on). If you need to compute pixel sums over variable-size windows, use cv.integral.

See also