View source: R/open_image_rscript.R
uniform_filter | R Documentation |
uniform filter (convolution with uniform kernel)
uniform_filter(image, size, conv_mode = "same")
image |
matrix or 3-dimensional array where the third dimension is equal to 3 |
size |
a 2-item vector specifying the horizontal and vertical dimensions of the uniform kernel, e.g. c(3,3) |
conv_mode |
the convolution mode should be one of 'same', 'full' |
This function applies a uniform filter to a matrix or to a 3-dimensional array where the third dimension is equal to 3
depending on the input, either a matrix or an array
Lampros Mouselimis
path = system.file("tmp_images", "1.png", package = "OpenImageR")
image = readImage(path)
filt = uniform_filter(image, c(4,4), conv_mode = "same")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.