pub trait Convolution: AlgorithmTrait + ConvolutionConst {
    fn as_raw_mut_Convolution(&mut self) -> *mut c_void;

    fn convolve(
        &mut self,
        image: &dyn ToInputArray,
        templ: &dyn ToInputArray,
        result: &mut dyn ToOutputArray,
        ccorr: bool,
        stream: &mut Stream
    ) -> Result<()> { ... } }

Required Methods

Provided Methods

Computes a convolution (or cross-correlation) of two images.

Parameters
  • image: Source image. Only CV_32FC1 images are supported for now.
  • templ: Template image. The size is not greater than the image size. The type is the same as image .
  • result: Result image. If image is W x H and templ is w x h, then result must be W-w+1 x H-h+1.
  • ccorr: Flags to evaluate cross-correlation instead of convolution.
  • stream: Stream for the asynchronous version.
C++ default parameters
  • ccorr: false
  • stream: Stream::Null()

Implementors