filter2D applies an arbitrary linear filter to an image.

filter2D(image, kernel)

Arguments

image

An Image object.

kernel

A matrix representing the convolution kernel.

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.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

# TODO