[][src]Function opencv::imgproc::sep_filter_2d

pub fn sep_filter_2d(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    ddepth: i32,
    kernel_x: &dyn ToInputArray,
    kernel_y: &dyn ToInputArray,
    anchor: Point,
    delta: f64,
    border_type: i32
) -> Result<()>

Applies a separable linear filter to an image.

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 .

Parameters

  • src: Source image.
  • dst: Destination image of the same size and the same number of channels as src .
  • ddepth: Destination image depth, see @ref filter_depths "combinations"
  • kernelX: Coefficients for filtering each row.
  • kernelY: Coefficients for filtering each column.
  • anchor: Anchor position within the kernel. The default value inline formula means that the anchor is at the kernel center.
  • delta: Value added to the filtered results before storing them.
  • borderType: Pixel extrapolation method, see #BorderTypes

See also

filter2D, Sobel, GaussianBlur, boxFilter, blur

C++ default parameters

  • anchor: Point(-1,-1)
  • delta: 0
  • border_type: BORDER_DEFAULT