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)

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.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

# TODO