sepFilter2D: Image Filtering with a Separable Linear Filter

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/filters.R

Description

sepFilter2D applies a separable linear filter to an image. First, every row of the image is filtered with the 1D kernel kernel_x. Then, every column of the result is filtered with the 1D kernel kernel_y.

Usage

1
sepFilter2D(image, kernel_x, kernel_y)

Arguments

image

An Image object.

kernel_x

A vector representing the kernel along the x axis.

kernel_y

A vector representing the kernel along the y axis.

Value

An Image object.

Note

For color images, the same kernel is applied to each channel of the image. If you want to apply different kernels to each channel, first split the image into separate channels with the split and process them individually before merging them using the merge function.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, filter2D, split, merge

Examples

1
# TODO

neuroconductor-devel/Rvision documentation built on May 16, 2021, 5:16 p.m.