filter2D
applies an arbitrary linear filter to an image.
filter2D(image, kernel)
image | An |
---|---|
kernel | A matrix representing the convolution kernel. |
An Image
object.
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.
Simon Garnier, garnier@njit.edu
# TODO