sqrBoxFilter calculates the normalized and unnormalized sum of squares of the pixels in a box surrounding focal pixel. The result is a blurred version of the source image.

sqrBoxFilter(image, k_height = 5, k_width = 5, normalize = TRUE)

Arguments

image

An Image object.

k_height

The half-height in pixels of the kernel (default: 5).

k_width

The half-width in pixels of the kernel (default: 5).

normalize

Whether the kernel is to be normalized by its area (default: true).

Value

image An Image object.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

# TODO