uniform_filter: uniform filter (convolution with uniform kernel)

Description Usage Arguments Details Value Author(s) Examples

View source: R/open_image_rscript.R

Description

uniform filter (convolution with uniform kernel)

Usage

1
uniform_filter(image, size, conv_mode = "same")

Arguments

image

matrix or 3-dimensional array

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'

Details

This function applies a uniform filter to a matrix or to a 3-dimensional array

Value

depending on the input, either a matrix or an array

Author(s)

Lampros Mouselimis

Examples

1
2
3
4
5
path = system.file("tmp_images", "1.png", package = "OpenImageR")

image = readImage(path)

filt = uniform_filter(image, c(4,4), conv_mode = "same")

OpenImageR documentation built on Sept. 10, 2021, 5:08 p.m.