Applies a separable linear filter to an image
dst = cv.sepFilter2D(src, kernelX, kernelY)
dst = cv.sepFilter2D(..., 'OptionName',optionValue, ...)
Input
- src Source image.
- kernelX Coefficients for filtering each row.
- kernelY Coefficients for filtering each column.
Output
- dst Destination image of the same size and the same number of channels
as
src
.
Options
- Anchor Anchor position within the kernel. The default value (-1,-1)
means that the anchor is at the kernel center.
- Delta Value added to the filtered results before storing them.
default 0
- BorderType Pixel extrapolation method. See cv.copyMakeBorder.
default 'Default'
- DDepth Destination image depth, see cv.filter2D. default -1
The function applies a separable linear filter to the image. That is, first,
every row of src
is filtered with the 1D kernel kernelX
. Then, every
column of the result is filtered with the 1D kernel kernelY
. The final
result shifted by delta is stored in dst
.