MATLAB File Help: cv.boxFilter | Index |
Blurs an image using the box filter
dst = cv.boxFilter(src)
dst = cv.boxFilter(src, 'OptionName',optionValue, ...)
src
.class(src)
). Default -1.
See cv.filter2D for details.[x,y]
; default value [-1,-1] means that the
anchor is at the kernel center.The function smoothes 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.