powered by
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
sqrBoxFilter(image, k_height = 5, k_width = 5, normalize = TRUE)
An Image object.
Image
The half-height in pixels of the kernel (default: 5).
The half-width in pixels of the kernel (default: 5).
Whether the kernel is to be normalized by its area (default: true).
Image, boxFilter
boxFilter
# NOT RUN { balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision")) balloon_blur <- sqrBoxFilter(balloon, 11, 11) plot(balloon_blur) # }
Run the code above in your browser using DataLab