[][src]Trait opencv::prelude::Convolution

pub trait Convolution: AlgorithmTrait {
    pub fn as_raw_Convolution(&self) -> *const c_void;
pub fn as_raw_mut_Convolution(&mut self) -> *mut c_void; pub fn convolve(
        &mut self,
        image: &dyn ToInputArray,
        templ: &dyn ToInputArray,
        result: &mut dyn ToOutputArray,
        ccorr: bool,
        stream: &mut Stream
    ) -> Result<()> { ... } }

Base class for convolution (or cross-correlation) operator. :

Required methods

Loading content...

Provided methods

pub fn convolve(
    &mut self,
    image: &dyn ToInputArray,
    templ: &dyn ToInputArray,
    result: &mut dyn ToOutputArray,
    ccorr: bool,
    stream: &mut Stream
) -> Result<()>
[src]

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()
Loading content...

Implementors

Loading content...