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
.
sepFilter2D(image, kernel_x, kernel_y)
image | An |
---|---|
kernel_x | A vector representing the kernel along the x axis. |
kernel_y | A vector representing the kernel along the y axis. |
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