| medianBlur | R Documentation |
medianBlur smoothes an image using a median filter, i.e.
the value of each pixel is replaced by the median value of all the pixels in
its neighborhood.
medianBlur(image, k_size = 2, target = "new", in_place = NULL)
image |
If |
k_size |
The half-size in pixels of the kernel (default: 2). |
target |
The location where the results should be stored. It can take 3 values:
|
in_place |
Deprecated. Use |
If target="new", the function returns an Image
object. If target="self", the function returns nothing and modifies
image in place. If target is an Image object,
the function returns nothing and modifies that Image object in
place.
Simon Garnier, garnier@njit.edu
Image, gaussianBlur
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
balloon_blur <- medianBlur(balloon, 11)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.